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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.