SchemaHierarchyBase.GetElementNameStyle Method
Returns the display style for model elements.
Namespace: Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer
Assembly: Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)
Syntax
'Declaration
Protected Overridable Function GetElementNameStyle ( _
element As IModelElement _
) As ElementNameStyle
protected virtual ElementNameStyle GetElementNameStyle(
IModelElement element
)
protected:
virtual ElementNameStyle GetElementNameStyle(
IModelElement^ element
)
abstract GetElementNameStyle :
element:IModelElement -> ElementNameStyle
override GetElementNameStyle :
element:IModelElement -> ElementNameStyle
protected function GetElementNameStyle(
element : IModelElement
) : ElementNameStyle
Parameters
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
Model element.
Return Value
Type: Microsoft.Data.Schema.ElementNameStyle
Display style.
Remarks
In the base implementation, the simple name is used if the element has a parent, and a fully qualified name is used if the element is a top-level item. Derived classes can override this method as needed.
.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.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer Namespace