Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
Element for which to find the parent.
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
- 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