    

 ## On this page

  

 

 # Class ObjectCache

 Last update: 16.07.2025 

Namespace: [VM.Models.Pre](VM.Models.Pre.md)  
Assembly: VM.Models.Pre.dll

```csharp
public static class ObjectCache

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [ObjectCache](VM.Models.Pre.ObjectCache.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### Add(UIntPtr, object)

```csharp
public static void Add(UIntPtr key, object value)

```

#### Parameters

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

`value` [object](https://learn.microsoft.com/dotnet/api/system.object)

### Contains(UIntPtr)

```csharp
public static bool Contains(UIntPtr key)

```

#### Parameters

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

#### Returns

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

### GetValue(UIntPtr)

```csharp
public static object GetValue(UIntPtr key)

```

#### Parameters

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

#### Returns

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

### Remove(UIntPtr)

```csharp
public static void Remove(UIntPtr key)

```

#### Parameters

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

### TryGetValue(UIntPtr, out object)

```csharp
public static bool TryGetValue(UIntPtr key, out object value)

```

#### Parameters

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

`value` [object](https://learn.microsoft.com/dotnet/api/system.object)

#### Returns

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

### TryGetValue&lt;T&gt;(UIntPtr, out T)

```csharp
public static bool TryGetValue<T>(UIntPtr key, out T value)

```

#### Parameters

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

`value` T

#### Returns

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

#### Type Parameters

`T`