CVB.Net 14.0
NativeHandleExtensions Class Reference

Extensions for INativeHandle. More...

Static Public Member Functions

static void NativeCall (this INativeHandle wrapper, Processing.StandardProcessingFunctionVoid action, string errorString)
 Do a native call with automatic error handling. More...
 
static TOut NativeCall< TOut > (this INativeHandle wrapper, Processing.StandardProcessingFunction1< TOut > action, string errorString)
 Do a native call that returns a value with automatic error handling. More...
 

Detailed Description

Member Function Documentation

◆ NativeCall()

static void NativeCall ( this INativeHandle  wrapper,
Processing.StandardProcessingFunctionVoid  action,
string  errorString 
)
static

Do a native call with automatic error handling.

Parameters
wrapperThe object on which to perform the action .
actionNative action to perform.
errorStringError message in case the native call fails.

◆ NativeCall< TOut >()

static TOut NativeCall< TOut > ( this INativeHandle  wrapper,
Processing.StandardProcessingFunction1< TOut >  action,
string  errorString 
)
static

Do a native call that returns a value with automatic error handling.

Template Parameters
TOutReturn type.
Parameters
wrapperThe object on which to perform the action .
actionNative action to perform.
errorStringError message in case the native call fails.
Returns
The result of the action .