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
- node
Type: Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer.ISchemaModelViewerNode
The node for whose parent a search was initiated.
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
- 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
SchemaHierarchyUtilities Class
Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer Namespace