共用方式為


IVsContainedLanguageHost.GetVSHierarchy Method

Returns the hierarchy that contains the file displayed in the primary buffer.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'宣告
Function GetVSHierarchy ( _
    <OutAttribute> ByRef ppVsHierarchy As IVsHierarchy _
) As Integer
'用途
Dim instance As IVsContainedLanguageHost
Dim ppVsHierarchy As IVsHierarchy
Dim returnValue As Integer

returnValue = instance.GetVSHierarchy(ppVsHierarchy)
int GetVSHierarchy(
    out IVsHierarchy ppVsHierarchy
)
int GetVSHierarchy(
    [OutAttribute] IVsHierarchy^% ppVsHierarchy
)
abstract GetVSHierarchy : 
        ppVsHierarchy:IVsHierarchy byref -> int 
function GetVSHierarchy(
    ppVsHierarchy : IVsHierarchy
) : int

Parameters

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT GetVSHierarchy(
   [out] IVsHierarchy** ppVsHierarchy
);

This method is called by the contained language to support a call to the GetHierarchy method in the IVsErrorItem interface since the secondary buffer that the contained language uses is not part of a hierarchy.

.NET Framework Security

See Also

Reference

IVsContainedLanguageHost Interface

IVsContainedLanguageHost Members

Microsoft.VisualStudio.TextManager.Interop Namespace