DomainClassInfo.SetName(ModelElement, String) 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.
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.