共用方式為


CodeDomDesignerLoader.INameCreationService.CreateName 方法

定義

建立在指定容器中所有元件的唯一新名稱。

 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

參數

container
IContainer

加入新物件的所在容器。

dataType
Type

接收名稱的物件資料型別。

傳回

資料型別的唯一名稱。

實作

例外狀況

dataTypenull

適用於