다음을 통해 공유


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

'Declaration
Function GetCategory ( _
    <OutAttribute> ByRef pCategory As UInteger _
) As Integer
int GetCategory(
    out uint pCategory
)
int GetCategory(
    [OutAttribute] unsigned int% pCategory
)
abstract GetCategory : 
        pCategory:uint32 byref -> int
function GetCategory(
    pCategory : uint
) : int

Parameters

  • pCategory
    Type: UInt32%

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

Return Value

Type: 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
);

.NET Framework Security

See Also

Reference

IVsErrorItem Interface

Microsoft.VisualStudio.Shell.Interop Namespace