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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.