IVsErrorItem.GetCategory Method

Returns the category of the error.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣言
Function GetCategory ( _
    <OutAttribute> ByRef pCategory As UInteger _
) As Integer
'使用
Dim instance As IVsErrorItem
Dim pCategory As UInteger
Dim returnValue As Integer

returnValue = instance.GetCategory(pCategory)
int GetCategory(
    out uint pCategory
)
int GetCategory(
    [OutAttribute] unsigned int% pCategory
)
function GetCategory(
    pCategory : uint
) : int

Parameters

  • pCategory
    Type: System.UInt32%

    [out] A VSERRORCATEGORY value, a value from the __VSERRORCATEGORY enumeration, specifying an error, warning, or informational message.

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 vsshell80.idl:

HRESULT IVsErrorItem::GetCategory(
   [out] VSERRORCATEGORY* pCategory
);

Permissions

See Also

Reference

IVsErrorItem Interface

IVsErrorItem Members

Microsoft.VisualStudio.Shell.Interop Namespace