DomainClassInfo.SetUniqueName Method

Definition

Overloads

SetUniqueName(ModelElement)

Assigns given element an unique name.

SetUniqueName(ModelElement, String)

Assigns given element an unique name.

SetUniqueName(ModelElement)

Assigns given element an unique name.

public:
 static void SetUniqueName(Microsoft::VisualStudio::Modeling::ModelElement ^ element);
[System.Diagnostics.DebuggerStepThrough]
public static void SetUniqueName (Microsoft.VisualStudio.Modeling.ModelElement element);
[<System.Diagnostics.DebuggerStepThrough>]
static member SetUniqueName : Microsoft.VisualStudio.Modeling.ModelElement -> unit
Public Shared Sub SetUniqueName (element As ModelElement)

Parameters

element
ModelElement

Element to assign unique name.

Attributes

Exceptions

element is null.

Element's domain class has no element name property define; Operation is invoked outside of modeling transaction scope or other model constraints are not satisfied.

Applies to

SetUniqueName(ModelElement, String)

Assigns given element an unique name.

public:
 static void SetUniqueName(Microsoft::VisualStudio::Modeling::ModelElement ^ element, System::String ^ baseName);
public static void SetUniqueName (Microsoft.VisualStudio.Modeling.ModelElement element, string baseName);
static member SetUniqueName : Microsoft.VisualStudio.Modeling.ModelElement * string -> unit
Public Shared Sub SetUniqueName (element As ModelElement, baseName As String)

Parameters

element
ModelElement

Element to assign unique name.

baseName
String

Name to be used as a base for generating unique names.

Exceptions

element is null.

Element's domain class has no element name property define; Operation is invoked outside of modeling transaction scope or other model constraints are not satisfied.

Applies to