IVsHierarchy.GetGuidProperty(UInt32, Int32, Guid) 方法

定义

获取其值为 Guid 的属性。Gets properties whose values are GUIDs.

public:
 int GetGuidProperty(System::UInt32 itemid, int propid, [Runtime::InteropServices::Out] Guid % pguid);
public int GetGuidProperty (uint itemid, int propid, out Guid pguid);
abstract member GetGuidProperty : uint32 * int * Guid -> int
Public Function GetGuidProperty (itemid As UInteger, propid As Integer, ByRef pguid As Guid) As Integer

参数

itemid
UInt32

中要检索其属性的层次结构项的标识符。[in] Identifier of hierarchy item whose property is to be retrieved. 有关值的列表 itemid ,请参阅 VSITEMIDFor a list of itemid values, see VSITEMID.

propid
Int32

中给定层次结构项的属性的标识符。[in] Identifier of the property of the given hierarchy item. 有关值的列表 propid ,请参阅 __VSHPROPIDFor a list of propid values, see __VSHPROPID.

pguid
Guid

弄指向中指定的 GUID 属性的指针 propid[out] Pointer to a GUID property specified in propid.

返回

Int32

如果该方法成功,则它会返回 S_OKIf the method succeeds, it returns S_OK. 如果该方法失败,则会返回错误代码。If it fails, it returns an error code.

注解

COM 签名COM Signature

从 vsshell:From vsshell.idl:

HRESULT IVsHierarchy::GetGuidProperty(  
   [in] VSITEMID itemid,  
   [in] VSHPROPID propid,  
   [out] GUID *pguid  
);  

使用此方法可以传递值为 Guid 的任何属性。Use this method to pass any properties whose values are GUIDs. GetProperty方法不能用于传递 GUID 属性。The GetProperty method cannot be used to pass GUID properties.

适用于