CodeDomDesignerLoader.INameCreationService.CreateName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.