IVsUIShell3.ReportErrorInfo2 Method

Report error information, allowing the caller to suppress the UAC dialog box.

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

Syntax

‘선언
Function ReportErrorInfo2 ( _
    hr As Integer, _
    Suppress As Boolean _
) As Integer
‘사용 방법
Dim instance As IVsUIShell3
Dim hr As Integer
Dim Suppress As Boolean
Dim returnValue As Integer

returnValue = instance.ReportErrorInfo2(hr, _
    Suppress)
int ReportErrorInfo2(
    int hr,
    bool Suppress
)
int ReportErrorInfo2(
    [InAttribute] int hr, 
    [InAttribute] bool Suppress
)
abstract ReportErrorInfo2 : 
        hr:int * 
        Suppress:bool -> int 
function ReportErrorInfo2(
    hr : int, 
    Suppress : boolean
) : int

Parameters

  • Suppress
    Type: System.Boolean
    [in] True to suppress display of the dialog box.

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

HRESULT ReportErrorInfo2(
    [in] HRESULT hr, 
    [in] VARIANT_BOOL Suppress
);

.NET Framework Security

See Also

Reference

IVsUIShell3 Interface

IVsUIShell3 Members

Microsoft.VisualStudio.Shell.Interop Namespace