FlavoredProject.IVsUIHierarchy.GetProperty(UInt32, Int32, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取给定节点的属性的值。
virtual int Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.GetProperty(System::UInt32 itemid, int propid, [Runtime::InteropServices::Out] System::Object ^ % pvar) = Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy::GetProperty;
int Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.GetProperty(unsigned int itemid, int propid, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvar);
int IVsUIHierarchy.GetProperty (uint itemid, int propid, out object pvar);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.GetProperty : uint32 * int * obj -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.GetProperty : uint32 * int * obj -> int
Function GetProperty (itemid As UInteger, propid As Integer, ByRef pvar As Object) As Integer Implements IVsUIHierarchy.GetProperty
参数
- itemid
- UInt32
节点的项 ID。
- propid
- Int32
请求的属性的 ID。
- pvar
- Object
弄属性的值。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
实现
注解
此方法调用 GetProperty 方法。