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

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

This class is to represent the object check licence.

```csharp theme={null}
public class CheckLicenseObject
```

#### Inheritance

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

### CheckLicenseObject()

```csharp theme={null}
public CheckLicenseObject()
```

## Methods

### CheckLicense(object, ref string)

Check license.

```csharp theme={null}
public static bool CheckLicense(object ob, ref string strErrorMsg)
```

#### Parameters

`ob` object

The object.

`strErrorMsg` string

The error message.

#### Returns

bool

### CheckLicense(Type, ref string)

Check license.

```csharp theme={null}
public static bool CheckLicense(Type type, ref string strErrorMsg)
```

#### Parameters

`type` Type

The Type.

`strErrorMsg` string

The error message.

#### Returns

bool

### CheckLicenseNoErrorMsg(Type, ref string)

Check license.

```csharp theme={null}
public static bool CheckLicenseNoErrorMsg(Type type, ref string strErrorMsg)
```

#### Parameters

`type` Type

The Type.

`strErrorMsg` string

The error message.

#### Returns

bool

### GetLicenseErrorMessage(ILicense)

Get license message.

```csharp theme={null}
public static string GetLicenseErrorMessage(ILicense lic)
```

#### Parameters

`lic` ILicense

The License interface.

#### Returns

string
