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

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

```csharp theme={null}
public static class ObjectCache
```

#### Inheritance

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

## Methods

### Add(UIntPtr, object)

```csharp theme={null}
public static void Add(UIntPtr key, object value)
```

#### Parameters

`key` UIntPtr

`value` object

### Contains(UIntPtr)

```csharp theme={null}
public static bool Contains(UIntPtr key)
```

#### Parameters

`key` UIntPtr

#### Returns

bool

### GetValue(UIntPtr)

```csharp theme={null}
public static object GetValue(UIntPtr key)
```

#### Parameters

`key` UIntPtr

#### Returns

object

### Remove(UIntPtr)

```csharp theme={null}
public static void Remove(UIntPtr key)
```

#### Parameters

`key` UIntPtr

### TryGetValue(UIntPtr, out object)

```csharp theme={null}
public static bool TryGetValue(UIntPtr key, out object value)
```

#### Parameters

`key` UIntPtr

`value` object

#### Returns

bool

### TryGetValue\<T>(UIntPtr, out T)

```csharp theme={null}
public static bool TryGetValue<T>(UIntPtr key, out T value)
```

#### Parameters

`key` UIntPtr

`value` T

#### Returns

bool

#### Type Parameters

`T`
