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
- hr
Type: System.Int32
[in] The HRESULT to display. 
- 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
- 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.