DomainClassInfo.SetName(ModelElement, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置元素的 name 属性值。
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)
参数
- element
- ModelElement
Element.
- name
- String
要设置的名称属性值。
例外
元素为 null。
元素的域类没有元素名称属性 define;操作是在建模事务范围之外调用的,否则其他模型约束将不满足。