ThrowOnFailure Method
Namespace: Microsoft.VisualStudio.Data.Tools.Package.UI
Assembly: Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)
Syntax
'Declaration
Public Shared Function ThrowOnFailure ( _
hr As Integer, _
context As String _
) As Integer
'Usage
Dim hr As Integer
Dim context As String
Dim returnValue As Integer
returnValue = DataPackage.ThrowOnFailure(hr, _
context)
public static int ThrowOnFailure(
int hr,
string context
)
public:
static int ThrowOnFailure(
int hr,
String^ context
)
static member ThrowOnFailure :
hr:int *
context:string -> int
public static function ThrowOnFailure(
hr : int,
context : String
) : int
Parameters
- hr
Type: System..::..Int32
- context
Type: System..::..String
Return Value
Type: System..::..Int32