NativeFileIOWin32TryT Method (T) |
Encapsulates call to a Win32 API function that returns a value where failure
is indicated as a NULL return and GetLastError() returns an error code. If
non-zero value is passed to this method it just returns that value. If zero
value is passed, it calls GetLastError() and throws a managed exception for
that error code.
Namespace:
Arsenal.ImageMounter.IO
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public static T Win32Try<T>(
T result
)
Public Shared Function Win32Try(Of T) (
result As T
) As T
public:
generic<typename T>
static T Win32Try(
T result
)
static member Win32Try :
result : 'T -> 'T
Parameters
- result
- Type: T
Return code from a Win32 API function call.
Type Parameters
- T
Return Value
Type:
TSee Also