Sets the name of the element.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Shared Sub SetName ( _
element As ModelElement, _
name As String _
)
'使用
Dim element As ModelElement
Dim name As String
DomainClassInfo.SetName(element, name)
public static void SetName(
ModelElement element,
string name
)
public:
static void SetName(
ModelElement^ element,
String^ name
)
public static function SetName(
element : ModelElement,
name : String
)
Parameters
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element to name.
name
Type: System.StringThe name for the element.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.