Delen via


SchemaHierarchyUtilities.GetOwningElement Method

Returns the closest model node that contains a store element.

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
Public Shared Function GetOwningElement ( _
    node As ISchemaModelViewerNode _
) As IModelElement
public static IModelElement GetOwningElement(
    ISchemaModelViewerNode node
)
public:
static IModelElement^ GetOwningElement(
    ISchemaModelViewerNode^ node
)
static member GetOwningElement : 
        node:ISchemaModelViewerNode -> IModelElement 
public static function GetOwningElement(
    node : ISchemaModelViewerNode
) : IModelElement

Parameters

Return Value

Type: Microsoft.Data.Schema.SchemaModel.IModelElement
Model node, or nulla null reference (Nothing in Visual Basic) if no model node is found.

.NET Framework Security

See Also

Reference

SchemaHierarchyUtilities Class

Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer Namespace