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

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

This class serve cache for Link/Child type properties of given object or type

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[LinkPropertyItemCache](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### GetLinkProperties(Type, LinkPropertyType)

Get all properties which have LinkAttribute custome attribute for given Type.

```csharp theme={null}
public static IEnumerable<PropertyInfo> GetLinkProperties(this Type type, LinkPropertyType propertyType = LinkPropertyType.All)
```

#### Parameters

`type` [Type](https://learn.microsoft.com/dotnet/api/system.type)

The Type whiche want to find properties.

`propertyType` [LinkPropertyType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.LinkPropertyType.md)

The [LinkPropertyType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.LinkPropertyType.md) to search.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[PropertyInfo](https://learn.microsoft.com/dotnet/api/system.reflection.propertyinfo)>

Found IEnumerable\`1 of PropertyInfo.

### GetLinkProperties(object, LinkPropertyType)

Get all properties which have LinkAttribute custome attribute for given object.

```csharp theme={null}
public static IEnumerable<PropertyInfo> GetLinkProperties(this object obj, LinkPropertyType propertyType = LinkPropertyType.All)
```

#### Parameters

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

The object whiche want to find properties.

`propertyType` [LinkPropertyType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.LinkPropertyType.md)

The [LinkPropertyType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.LinkPropertyType.md) to search.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[PropertyInfo](https://learn.microsoft.com/dotnet/api/system.reflection.propertyinfo)>

Found IEnumerable\`1 of PropertyInfo.

### GetLinkPropertiesAndValues(object, LinkPropertyType)

Get all properties and their values which have LinkAttribute custome attribute for given object.

```csharp theme={null}
public static IEnumerable<(PropertyInfo property, object value)> GetLinkPropertiesAndValues(this object obj, LinkPropertyType propertyType = LinkPropertyType.All)
```

#### Parameters

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

The object whiche want to find properties.

`propertyType` [LinkPropertyType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.LinkPropertyType.md)

The [LinkPropertyType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.LinkPropertyType.md) to search.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<([PropertyInfo](https://learn.microsoft.com/dotnet/api/system.reflection.propertyinfo) [property](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.reflection.propertyinfo,system.object-.property), [object](https://learn.microsoft.com/dotnet/api/system.object) [value](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.reflection.propertyinfo,system.object-.value))>

Found IEnumerable\`1 of PropertyInfo and its value.

### GetLinkedObjects\<T>(object, LinkPropertyType)

Get all propertiy values which have LinkAttribute custome attribute for given object.

```csharp theme={null}
public static IEnumerable<T> GetLinkedObjects<T>(this object obj, LinkPropertyType propertyType = LinkPropertyType.All)
```

#### Parameters

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

The object whiche want to find properties.

`propertyType` [LinkPropertyType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.LinkPropertyType.md)

The [LinkPropertyType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.LinkPropertyType.md) to search.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<T>

Found IEnumerable\`1 of property values.

#### Type Parameters

`T`

The type of property value
