Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​ComponentModel.​Design.​Serialization.​INameCreationService

Assembly: System.ComponentModel.TypeConverter

Provides a service that can generate unique names for objects.

Methods

string
CreateName​(IContainer? container, Type dataType)
Creates a new name that is unique to all components in the specified container.
Returns A unique name for the data type.
container The container where the new object is added.
dataType The data type of the object that receives the name.
bool
IsValidName​(string name)
Gets a value indicating whether the specified name is valid.
Returns <see langword="true" /> if the name is valid; otherwise, <see langword="false" /> .
name The name to validate.
void
ValidateName​(string name)
Gets a value indicating whether the specified name is valid.
name The name to validate.