> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class ContainerImpl

Namespace: [VM.Managed](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed)\
Assembly: VMAppCore.dll

This class is to represent the DAFUL object container.

```csharp theme={null}
public class ContainerImpl
```

#### Inheritance

object ←
[ContainerImpl](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.ContainerImpl.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ContainerImpl()

```csharp theme={null}
public ContainerImpl()
```

## Properties

### NewNamePattern

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

```csharp theme={null}
public static string NewNamePattern { get; set; }
```

#### Property Value

string

## Methods

### Find(IContainer, string)

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

```csharp theme={null}
public static IObjectBase Find(IContainer container, string strName)
```

#### Parameters

`container` IContainer

The DAFUL object container.

`strName` 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 theme={null}
public static string GetNewEntityName(IContainer container, string strPrefix, bool bUseUnderLine, int nNumFigure, int nStartIndex)
```

#### Parameters

`container` IContainer

The DAFUL object container.

`strPrefix` string

The DAFUL object prefix name.

`bUseUnderLine` bool

Whether use underline.

`nNumFigure` int

The Number of Figure.

`nStartIndex` int

The start index.

#### Returns

string

The DAFUL object name.

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

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

```csharp theme={null}
public static string GetNewEntityName(IContainer container, string strPrefix, bool bUseUnderLine, int nNumFigure)
```

#### Parameters

`container` IContainer

The DAFUL object container.

`strPrefix` string

The DAFUL object prefix name.

`bUseUnderLine` bool

Whether use underline.

`nNumFigure` int

The Number of Figure.

#### Returns

string

The DAFUL object name.

### GetNewEntityName(IContainer, string)

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

```csharp theme={null}
public static string GetNewEntityName(IContainer container, string strPrefix)
```

#### Parameters

`container` IContainer

The DAFUL object container.

`strPrefix` string

The DAFUL object prefix name.

#### Returns

string

The DAFUL object name.
