    

 ## On this page

  

 

 # Interface IOwned

 Last update: 16.07.2025 

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

This interface is to represent the owner object in the object relationship.

```csharp
public interface IOwned

```

#### 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_)

## Properties

### Container

Gets or sets the owner object.

```csharp
IOwned Container { get; }

```

#### Property Value

[IOwned](VM.Models.Pre.IOwned.md)

### Document

Gets the document that contains the object.

```csharp
IDocument Document { get; }

```

#### Property Value

[IDocument](VM.Models.Pre.IDocument.md)

### Owner

Gets the owner object.

```csharp
IObject Owner { get; }

```

#### Property Value

[IObject](VM.Models.Pre.IObject.md)

## Methods

### SetContainer(IOwned, bool, bool)

Sets the owner object.

```csharp
void SetContainer(IOwned owner, bool backup, bool isFromLinkAttribute = false)

```

#### Parameters

`owner` [IOwned](VM.Models.Pre.IOwned.md)

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

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