Partilhar via


DomainClassInfo.SetName(ModelElement, String) Method

Definition

Sets name property value on the element.

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

Parameters

element
ModelElement

Element.

name
String

Name property value to set.

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