ErrorHandler.CallWithCOMConvention Method (Func, Boolean)
Namespace: Microsoft.VisualStudio
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Public Shared Function CallWithCOMConvention ( _
method As Func<(Of <<'(Int32>)>>), _
reportError As Boolean _
) As Integer
public static int CallWithCOMConvention(
Func<(Of <<'(Int32>)>>) method,
bool reportError
)
Parameters
- method
Type: System.Func<Int32>
- reportError
Type: System.Boolean
Return Value
Type: System.Int32
.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.