FlavoredProject.IVsHierarchy.GetProperty(UInt32, Int32, Object) 方法

定义

获取给定节点或层次结构的属性。

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetProperty(System::UInt32 itemId, int propId, [Runtime::InteropServices::Out] System::Object ^ % property) = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::GetProperty;
int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetProperty(unsigned int itemId, int propId, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & property);
int IVsHierarchy.GetProperty (uint itemId, int propId, out object property);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetProperty : uint32 * int * obj -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetProperty : uint32 * int * obj -> int
Function GetProperty (itemId As UInteger, propId As Integer, ByRef property As Object) As Integer Implements IVsHierarchy.GetProperty

参数

itemId
UInt32

项目的 ID。

propId
Int32

属性的 ID。

property
Object

弄属性的值。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

注解

此方法调用 GetProperty 方法,该方法调用 GetProperty 内部项目的方法。

适用于