    

 ## On this page

  

 

 # Class ContainerImpl

 Last update: 16.07.2025 

Namespace: [VM.Managed](VM.Managed.md)  
Assembly: VMAppCore.dll

This class is to represent the DAFUL object container.

```csharp
public class ContainerImpl

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [ContainerImpl](VM.Managed.ContainerImpl.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_)

## Constructors

### ContainerImpl()

```csharp
public ContainerImpl()

```

## Properties

### NewNamePattern

Gets or sets new DAFUL object name pattern. (PREFIX\_DDD)

```csharp
public static string NewNamePattern { get; set; }

```

#### Property Value

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

## Methods

### Find(IContainer, string)

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

```csharp
public static IObjectBase Find(IContainer container, string strName)

```

#### Parameters

`container` IContainer

The DAFUL object container.

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

The DAFUL object name.

#### Returns

IObjectBase

The DAFUL object.

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

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

```csharp
public static string GetNewEntityName(IContainer container, string strPrefix, bool bUseUnderLine, int nNumFigure, int nStartIndex)

```

#### Parameters

`container` IContainer

The DAFUL object container.

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

The DAFUL object prefix name.

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

Whether use underline.

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

The Number of Figure.

`nStartIndex` [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.

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

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

```csharp
public static string GetNewEntityName(IContainer container, string strPrefix, bool bUseUnderLine, int nNumFigure)

```

#### Parameters

`container` IContainer

The DAFUL object container.

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

The DAFUL object prefix name.

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

Whether use underline.

`nNumFigure` [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(IContainer, string)

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

```csharp
public static string GetNewEntityName(IContainer container, string strPrefix)

```

#### Parameters

`container` IContainer

The DAFUL object container.

`strPrefix` [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.