    

 ## On this page

  

 

 # Interface IContainer

 Last update: 16.07.2025 

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

This interface is to represent the DAFUL object container.

```csharp
public interface IContainer : ILinkContainer, IOwned, IHasID

```

#### Implements

[ILinkContainer](VM.Models.Pre.ILinkContainer.md), [IOwned](VM.Models.Pre.IOwned.md), IHasID

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

### Find(string)

Find DAFUL object from the container by full name.

```csharp
IObjectBase Find(string name)

```

#### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The DAFUL object full name.

#### Returns

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

The DAFUL object.

### FindLocal(string)

Find DAFUL object from the container by name.

```csharp
IObjectBase FindLocal(string name)

```

#### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The DAFUL object name.

#### Returns

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

The DAFUL object.

### GetNewEntityName(string)

Generate an unique DAFUL object name from the container using the prefix name.

```csharp
string GetNewEntityName(string prefix)

```

#### Parameters

`prefix` [string](https://learn.microsoft.com/dotnet/api/system.string)

The DAFUL object prefix name.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The DAFUL object name.

### GetNewEntityName(string, bool, int)

Generate an unique DAFUL object name from the container using the prefix name.

```csharp
string GetNewEntityName(string prefix, bool useUnderLine, int numFigure)

```

#### Parameters

`prefix` [string](https://learn.microsoft.com/dotnet/api/system.string)

The DAFUL object prefix name.

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

Whether use underline.

`numFigure` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The Number of Figure.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The DAFUL object name.

### GetNewEntityName(string, bool, int, int)

Generate an unique DAFUL object name from the container using the prefix name.

```csharp
string GetNewEntityName(string prefix, bool useUnderLine, int numFigure, int startIndex)

```

#### Parameters

`prefix` [string](https://learn.microsoft.com/dotnet/api/system.string)

The DAFUL object prefix name.

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

Whether use underline.

`numFigure` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The Number of Figure.

`startIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The start index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The DAFUL object name.

### GetUnnamedObjectName(object)

Get an unnamed object name.

```csharp
string GetUnnamedObjectName(object @object)

```

#### Parameters

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

The unnamed object.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The unnamed object name.