返回指定的属性类别。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function GetPropertyCategory ( _
ByRef rguidCategory As Guid, _
<OutAttribute> ByRef ppProp As IVsTextEditorPropertyContainer _
) As Integer
int GetPropertyCategory(
ref Guid rguidCategory,
out IVsTextEditorPropertyContainer ppProp
)
int GetPropertyCategory(
[InAttribute] Guid% rguidCategory,
[OutAttribute] IVsTextEditorPropertyContainer^% ppProp
)
abstract GetPropertyCategory :
rguidCategory:Guid byref *
ppProp:IVsTextEditorPropertyContainer byref -> int
function GetPropertyCategory(
rguidCategory : Guid,
ppProp : IVsTextEditorPropertyContainer
) : int
参数
rguidCategory
类型:Guid%[in] 为属性指定 GUID 类别。 核心文本编辑器的预定义类别是 GUID_EditPropCategory_View_MasterSettings 和 GUID_EditPropCategory_TextMgr_Global,对于 textmgr.idl 定义。 其他对象可以定义不同的类别,根据要求。
ppProp
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextEditorPropertyContainer%[out] 为 IVsTextEditorPropertyContainer 对象的指针,将获得,设置,并移除编辑属性。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsTextEditorPropertyCategoryContainer::GetPropertyCategory(
[in] REFGUID rguidCategory,
[out] IVsTextEditorPropertyContainer **ppProp
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。