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
'Declaration
Function ReportErrorInfo2 ( _
hr As Integer, _
Suppress As Boolean _
) As Integer
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: Int32[in] The HRESULT to display.
Suppress
Type: Boolean[in] True to suppress display of the dialog box.
Return Value
Type: 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.