> ## 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 Kernel

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

This base class is to represent the kernel.

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

#### Inheritance

object ←
[Kernel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Kernel.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

### Kernel(IKernel\*)

Initializes a new instance of the [Kernel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Kernel.md) class

```csharp theme={null}
protected Kernel(IKernel* pKernel)
```

#### Parameters

`pKernel` IKernel\*

The kernal interface

## Properties

### IsLoading

Gets or sets a value indicating whether this instance is loading.

```csharp theme={null}
public bool IsLoading { get; set; }
```

#### Property Value

bool

### Key

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

#### Property Value

UIntPtr

## Methods

### ClearSession()

Clear session.

```csharp theme={null}
public static void ClearSession()
```

### ClearTemporaryEntity()

Clear temporary entity.

```csharp theme={null}
public static void ClearTemporaryEntity()
```

### Dispose(bool)

```csharp theme={null}
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)
```

#### Parameters

`A_0` bool

### Dispose()

destroy a instance of the [Kernel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Kernel.md) class.

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

### DoingSession()

Whether session is processing.

```csharp theme={null}
public static bool DoingSession()
```

#### Returns

bool

### ExecuteOperation(string, string, Document3D, ref string)

```csharp theme={null}
public bool ExecuteOperation(string strType, string strArgument, Document3D doc, ref string strResult)
```

#### Parameters

`strType` string

`strArgument` string

`doc` [Document3D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document3D.md)

`strResult` string

#### Returns

bool

### \~Kernel()

Releases unmanaged resources and performs other cleanup operations before the
[Kernel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Kernel.md) is reclaimed by garbage collection.

```csharp theme={null}
protected ~Kernel()
```

### Initialize()

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

### SetIgnoreThreadID(bool)

```csharp theme={null}
public void SetIgnoreThreadID(bool bIgnore)
```

#### Parameters

`bIgnore` bool

### Terminate()

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

### UpdateSession()

Update session.

```csharp theme={null}
public static void UpdateSession()
```
