NativeMethods.ThrowOnFailure Method (Int32)

Determines whether a result is a success or failure HRESULT and throws an exception in the case of failure.

Namespace:  Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Shared Function ThrowOnFailure ( _
    hr As Integer _
) As Integer
'Usage
Dim hr As Integer
Dim returnValue As Integer

returnValue = NativeMethods.ThrowOnFailure(hr)
public static int ThrowOnFailure(
    int hr
)
public:
static int ThrowOnFailure(
    int hr
)
public static function ThrowOnFailure(
    hr : int
) : int
static member ThrowOnFailure : 
        hr:int -> int 

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

NativeMethods Class

NativeMethods Members

ThrowOnFailure Overload

Microsoft.VisualStudio Namespace