IVsWindowFrame.GetGuidProperty(Int32, Guid) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
基于提供的 GUID 返回窗口框架属性。
public:
int GetGuidProperty(int propid, [Runtime::InteropServices::Out] Guid % pguid);
public int GetGuidProperty (int propid, out Guid pguid);
abstract member GetGuidProperty : int * Guid -> int
Public Function GetGuidProperty (propid As Integer, ByRef pguid As Guid) As Integer
参数
- propid
- Int32
中其值取自枚举的属性的标识符 __VSFPROPID 。
- pguid
- Guid
弄指向属性的唯一标识符的指针。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsWindowFrame::GetGuidProperty(
[in] VSFPROPID propid,
[out] GUID *pguid
);
下表列出了 GUID 属性的属性 Id。 __VSFPROPID有关所有属性类型的完整列表,请参阅。
| 属性名称 | ID | 注释 |
|---|---|---|
| VSFPROPID_CmdUIGuid | -4007 | 对于所有文档窗口框架 |
| VSFPROPID_InheritKeyBindings | -4011 | 对于所有文档窗口框架 |
| VSFPROPID_GuidPersistenceSlot | -5000 | 适用于所有工具窗口框架 |
| VSFPROPID_GuidAutoActivate | -5001 | 适用于所有工具窗口框架 |