> ## 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/2025-r1/lib/VM.CAD.Kernel)\
Assembly: VM.CAD.Kernel.dll

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[KernelObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.CAD.Kernel.KernelObject.md)

#### Derived

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

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/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/2025-r1/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/2025-r1/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](https://learn.microsoft.com/dotnet/api/system.uintptr)

`isLock` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

## Fields

### VMK\_ARGUMENT\_NULL

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

#### Field Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### VMK\_ARGUMENT\_TYPE

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

#### Field Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### VMK\_OK

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

#### Field Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## Properties

### Key

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

#### Property Value

[UIntPtr](https://learn.microsoft.com/dotnet/api/system.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](https://learn.microsoft.com/dotnet/api/system.func-1)\<[int](https://learn.microsoft.com/dotnet/api/system.int32)>

### 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/2025-r1/lib/VM.CAD.Kernel.KernelObject.md).[delGetFrom](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.CAD.Kernel.KernelObject.delGetFrom-1.md)\<TResult>

`checkFunctionReturnValue` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Returns

TResult

#### Type Parameters

`TResult`
