UserInteractionServices.GetElementName Method (IModelElement, ElementNameStyle)
Returns the element name for the specified element.
Namespace: Microsoft.Data.Schema
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Overridable Function GetElementName ( _
element As IModelElement, _
style As ElementNameStyle _
) As String
public virtual string GetElementName(
IModelElement element,
ElementNameStyle style
)
public:
virtual String^ GetElementName(
IModelElement^ element,
ElementNameStyle style
)
abstract GetElementName :
element:IModelElement *
style:ElementNameStyle -> string
override GetElementName :
element:IModelElement *
style:ElementNameStyle -> string
public function GetElementName(
element : IModelElement,
style : ElementNameStyle
) : String
Parameters
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
A ModelElement object.
- style
Type: Microsoft.Data.Schema.ElementNameStyle
An ElementNameStyle object.
Return Value
Type: System.String
The element name in the specified style.
Remarks
The parameters specify how the display name should be constructed.
.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.