> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class KernelObject

Namespace: [VM.CAD.Kernel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel)\
Assembly: VM.CAD.Kernel.dll

```csharp theme={null}
public abstract class KernelObject
```

#### Inheritance

object ←
[KernelObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.KernelObject.md)

#### Derived

[Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.Application.md),
[Canvas](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.Render.Canvas.md),
[Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.Document.md),
[Entity](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.Entity.md),
[Kernel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.Kernel.md),
[KernelExtension](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.KernelExtension.md),
[Layer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.Layer.md),
[LayerManager](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.LayerManager.md),
[Session](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.Session.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### KernelObject(UIntPtr, bool)

```csharp theme={null}
protected KernelObject(UIntPtr key, bool isLock = true)
```

#### Parameters

`key` UIntPtr

`isLock` bool

## Fields

### VMK\_ARGUMENT\_NULL

```csharp theme={null}
protected const int VMK_ARGUMENT_NULL = 1
```

#### Field Value

int

### VMK\_ARGUMENT\_TYPE

```csharp theme={null}
protected const int VMK_ARGUMENT_TYPE = 2
```

#### Field Value

int

### VMK\_OK

```csharp theme={null}
protected const int VMK_OK = 0
```

#### Field Value

int

## Properties

### Key

```csharp theme={null}
public UIntPtr Key { get; }
```

#### Property Value

UIntPtr

## Methods

### Dispose()

```csharp theme={null}
public void Dispose()
```

### DisposeManagedResource()

```csharp theme={null}
protected virtual void DisposeManagedResource()
```

### DisposeUnmanagedResource()

```csharp theme={null}
protected virtual void DisposeUnmanagedResource()
```

### Execute(Func\<int>)

```csharp theme={null}
protected static void Execute(Func<int> function)
```

#### Parameters

`function` Func\<int>

### GetFrom\<TResult>(delGetFrom\<TResult>, bool)

```csharp theme={null}
protected static TResult GetFrom<TResult>(KernelObject.delGetFrom<TResult> getFrom, bool checkFunctionReturnValue = true)
```

#### Parameters

`getFrom` [KernelObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.KernelObject.md).[delGetFrom](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.CAD.Kernel.KernelObject.delGetFrom-1.md)\<TResult>

`checkFunctionReturnValue` bool

#### Returns

TResult

#### Type Parameters

`TResult`
