Initializes or changes the project hierarchy for the document.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Protected Sub SetHierarchyInfo ( _
hierarchy As IVsHierarchy, _
itemId As UInteger _
)
'使用
Dim hierarchy As IVsHierarchy
Dim itemId As UInteger
Me.SetHierarchyInfo(hierarchy, itemId)
protected void SetHierarchyInfo(
IVsHierarchy hierarchy,
uint itemId
)
protected:
void SetHierarchyInfo(
IVsHierarchy^ hierarchy,
unsigned int itemId
)
protected function SetHierarchyInfo(
hierarchy : IVsHierarchy,
itemId : uint
)
Parameters
hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe new project hierarchy.
itemId
Type: System.UInt32The Item ID that is assigned to the document in the project hierarchy.
Remarks
This class implements the IVsHierarchy interface and the IVsPersistDocData2 interface.
Permissions
- 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.