Returns the GUID of the one of the categories within a group as identified by a group index.
Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
声明
Function GetCategory ( _
    iCategory As Integer, _
    <OutAttribute> ByRef pguidCategory As Guid _
) As Integer
用法
Dim instance As IVsFontAndColorGroup
Dim iCategory As Integer
Dim pguidCategory As Guid
Dim returnValue As Integer
returnValue = instance.GetCategory(iCategory, _
    pguidCategory)
int GetCategory(
    int iCategory,
    out Guid pguidCategory
)
int GetCategory(
    [InAttribute] int iCategory, 
    [OutAttribute] Guid% pguidCategory
)
abstract GetCategory : 
        iCategory:int * 
        pguidCategory:Guid byref -> int 
function GetCategory(
    iCategory : int, 
    pguidCategory : Guid
) : int
Parameters
- iCategory
Type: System.Int32
[in] Integer containing the category index number. 
- pguidCategory
Type: System.Guid%
[out] Pointer to a GUID specifying the indexed category. 
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsFontAndColorGroup::GetCategory(
   [in] int iCategory,
   [out] GUID *pguidCategory
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.