    

 ## On this page

  

 

 # Class LinkPropertyItemCache

 Last update: 09.03.2026 

<a id="VM_Models_Pre_Cache_LinkPropertyItemCache"></a>

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

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

```csharp
public static class LinkPropertyItemCache

```

#### Inheritance

object ← [LinkPropertyItemCache](VM.Models.Pre.Cache.LinkPropertyItemCache.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

### <a id="VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Type_VM_Models_Pre_LinkPropertyType_"></a> GetLinkProperties(Type, LinkPropertyType)

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

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

```

#### Parameters

`type` Type

The  whiche want to find properties.

`propertyType` [LinkPropertyType](VM.Models.Pre.LinkPropertyType.md)

The  to search.

#### Returns

IEnumerable&lt;PropertyInfo&gt;

Found  of .

### <a id="VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_"></a> GetLinkProperties(object, LinkPropertyType)

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

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

```

#### Parameters

`obj` object

The object whiche want to find properties.

`propertyType` [LinkPropertyType](VM.Models.Pre.LinkPropertyType.md)

The  to search.

#### Returns

IEnumerable&lt;PropertyInfo&gt;

Found  of .

### <a id="VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_"></a> GetLinkPropertiesAndValues(object, LinkPropertyType)

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

```csharp
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](VM.Models.Pre.LinkPropertyType.md)

The  to search.

#### Returns

IEnumerable&lt;(PropertyInfo property, object value)&gt;

Found  of  and its value.

### <a id="VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_"></a> GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)

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

```csharp
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](VM.Models.Pre.LinkPropertyType.md)

The  to search.

#### Returns

IEnumerable&lt;T&gt;

Found  of property values.

#### Type Parameters

`T`

The type of property value