Redigera

Dela via


CodeDomDesignerLoader.INameCreationService.CreateName Method

Definition

Creates a new name that is unique to all components in the specified container.

 virtual System::String ^ System.ComponentModel.Design.Serialization.INameCreationService.CreateName(System::ComponentModel::IContainer ^ container, Type ^ dataType) = System::ComponentModel::Design::Serialization::INameCreationService::CreateName;
string INameCreationService.CreateName (System.ComponentModel.IContainer container, Type dataType);
string INameCreationService.CreateName (System.ComponentModel.IContainer? container, Type dataType);
abstract member System.ComponentModel.Design.Serialization.INameCreationService.CreateName : System.ComponentModel.IContainer * Type -> string
override this.System.ComponentModel.Design.Serialization.INameCreationService.CreateName : System.ComponentModel.IContainer * Type -> string
Function CreateName (container As IContainer, dataType As Type) As String Implements INameCreationService.CreateName

Parameters

container
IContainer

The container where the new object is added.

dataType
Type

The data type of the object that receives the name.

Returns

A unique name for the data type.

Implements

Exceptions

dataType is null.

Applies to