SerializationUtilities.GetElementName Method
Gets the name of an element in the serialization results.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
声明
Public Shared Function GetElementName ( _
element As ModelElement _
) As String
public static string GetElementName(
ModelElement element
)
public:
static String^ GetElementName(
ModelElement^ element
)
static member GetElementName :
element:ModelElement -> string
public static function GetElementName(
element : ModelElement
) : String
Parameters
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
The element.
Return Value
Type: System.String
The name of the element.
Remarks
This method is used to display an the name of an element in an error message.
.NET Framework Security
- 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.