Поделиться через


SchemaHierarchyBase.GetElementParent Method

Returns the hierarchical parent element of the given element.

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 GetElementParent ( _
    element As IModelElement _
) As IModelElement
protected virtual IModelElement GetElementParent(
    IModelElement element
)
protected:
virtual IModelElement^ GetElementParent(
    IModelElement^ element
)
abstract GetElementParent : 
        element:IModelElement -> IModelElement 
override GetElementParent : 
        element:IModelElement -> IModelElement 
protected function GetElementParent(
    element : IModelElement
) : IModelElement

Parameters

Return Value

Type: Microsoft.Data.Schema.SchemaModel.IModelElement
Parent model element, or null.

Remarks

The parent is associated with the hierarchy structure and not the schema model. By default, GetOwner is used. If that returns null, a second attempt is made by using IOwnedObject.

.NET Framework Security

See Also

Reference

SchemaHierarchyBase Class

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