> ## 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/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 ←
[LinkPropertyItemCache](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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

The Type whiche want to find properties.

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

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

#### Returns

IEnumerable\<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

The object whiche want to find properties.

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

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

#### Returns

IEnumerable\<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

The object whiche want to find properties.

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

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

#### Returns

IEnumerable\<(PropertyInfo property, 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

The object whiche want to find properties.

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

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

#### Returns

IEnumerable\<T>

Found IEnumerable\`1 of property values.

#### Type Parameters

`T`

The type of property value
