DomainClassInfo.GetName(ModelElement) 方法

定义

获取元素名称属性的值。

public:
 static System::String ^ GetName(Microsoft::VisualStudio::Modeling::ModelElement ^ element);
public static string GetName (Microsoft.VisualStudio.Modeling.ModelElement element);
static member GetName : Microsoft.VisualStudio.Modeling.ModelElement -> string
Public Shared Function GetName (element As ModelElement) As String

参数

element
ModelElement

Element.

返回

String

元素名称属性的值。

例外

元素为 null。

元素的域类未定义元素名称属性。

适用于