该类及其成员保留供内部使用,不应在代码中使用。
命名空间:  Microsoft.VisualStudio.Data.Schema.Package.Project.Internal
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
语法
声明
Public Overridable Function GetProjectItem ( _
    <OutAttribute> ByRef hier As IVsHierarchy, _
    <OutAttribute> ByRef itemid As UInteger _
) As Integer
public virtual int GetProjectItem(
    out IVsHierarchy hier,
    out uint itemid
)
public:
virtual int GetProjectItem(
    [OutAttribute] IVsHierarchy^% hier, 
    [OutAttribute] unsigned int% itemid
)
abstract GetProjectItem : 
        hier:IVsHierarchy byref * 
        itemid:uint32 byref -> int 
override GetProjectItem : 
        hier:IVsHierarchy byref * 
        itemid:uint32 byref -> int 
public function GetProjectItem(
    hier : IVsHierarchy, 
    itemid : uint
) : int
参数
- hier
 类型:Microsoft.VisualStudio.Shell.Interop.IVsHierarchy%
 对层次结构对象的引用。
- itemid
 类型:System.UInt32%
 对项目项的引用。
返回值
类型:System.Int32
如果此方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
实现
IVsCfgBrowseObject.GetProjectItem(IVsHierarchy%, UInt32%)
IVsBrowseObject.GetProjectItem(IVsHierarchy%, UInt32%)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualStudio.Data.Schema.Package.Project.Internal 命名空间