Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: 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.