Assigns an element a unique name.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Shared Sub SetUniqueName ( _
element As ModelElement, _
baseName As String _
)
'使用
Dim element As ModelElement
Dim baseName As String
DomainClassInfo.SetUniqueName(element, baseName)
public static void SetUniqueName(
ModelElement element,
string baseName
)
public:
static void SetUniqueName(
ModelElement^ element,
String^ baseName
)
public static function SetUniqueName(
element : ModelElement,
baseName : String
)
Parameters
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element.
baseName
Type: System.StringThe name that you want to use as a base for generating unique names.
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.