    

 ## On this page

  

 

 # Interface IHasReplaceableEntity

 Last update: 09.03.2026 

<a id="VM_Models_Pre_IHasReplaceableEntity"></a>

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

This interface is to represent the replaceable entity.

```csharp
public interface IHasReplaceableEntity

```

#### 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_IHasReplaceableEntity_HasReplaceableEntity_VM_Models_Pre_IObjectBase_"></a> HasReplaceableEntity(IObjectBase)

Gets a value indicating whether this instance has replacable entity.

```csharp
bool HasReplaceableEntity(IObjectBase oldObject)

```

#### Parameters

`oldObject` [IObjectBase](VM.Models.Pre.IObjectBase.md)

The old object

#### Returns

bool

if this instance has replacable entity, the result is true.

### <a id="VM_Models_Pre_IHasReplaceableEntity_ReplaceEntity_VM_Models_Pre_IObjectBase_VM_Models_Pre_IObjectBase_"></a> ReplaceEntity(IObjectBase, IObjectBase)

Replace Entity

```csharp
bool ReplaceEntity(IObjectBase oldObject, IObjectBase newObject)

```

#### Parameters

`oldObject` [IObjectBase](VM.Models.Pre.IObjectBase.md)

The old object

`newObject` [IObjectBase](VM.Models.Pre.IObjectBase.md)

The new object

#### Returns

bool

if success, the result is true.