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

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

This class represents the application object of the native kernel

```csharp theme={null}
public sealed class Application : 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-r2/lib/VM.CAD.Kernel.KernelObject.md) ←
[Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.CAD.Kernel.Application.md)

#### Inherited Members

[KernelObject.Dispose()](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.CAD.Kernel.KernelObject.md#VM_CAD_Kernel_KernelObject_Dispose),
[KernelObject.Key](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.CAD.Kernel.KernelObject.md#VM_CAD_Kernel_KernelObject_Key)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/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-r2/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-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### Application(UIntPtr, bool)

Construct new Application object

```csharp theme={null}
public Application(UIntPtr key, bool isLock = true)
```

#### Parameters

`key` [UIntPtr](https://learn.microsoft.com/dotnet/api/system.uintptr)

The key of the application object.

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

If true, lock reference of the application object. otherwise, false.

## Methods

### OpenDocument(OpenDocumentInfo)

Open existing document

```csharp theme={null}
public (Document doc, uint returnCode) OpenDocument(OpenDocumentInfo openDocumentInfo)
```

#### Parameters

`openDocumentInfo` [OpenDocumentInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.CAD.Kernel.OpenDocumentInfo.md)

Information of the documet to open.

#### Returns

([Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.CAD.Kernel.Document.md) [doc](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.cad.kernel.document,system.uint32-.doc), [uint](https://learn.microsoft.com/dotnet/api/system.uint32) [returnCode](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.cad.kernel.document,system.uint32-.returncode))

The opened document.

#### See Also

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

### SetLogLevel(int, int)

Set loge level for kernel messages

```csharp theme={null}
public void SetLogLevel(int nKernelLogLevel, int nTranslatorLogLevel)
```

#### Parameters

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

Kernel message log level

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

Translator message log level

#### Exceptions

[NotImplementedException](https://learn.microsoft.com/dotnet/api/system.notimplementedexception)

Failed to set log level.
