SafeHandleExtensionsWithHandleT(SafeHandle, FuncIntPtr, T) Method |
Namespace: Ozeki.CommonAssembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.98
Syntaxpublic static T WithHandle<T>(
this SafeHandle safeHandle,
Func<IntPtr, T> func
)
<ExtensionAttribute>
Public Shared Function WithHandle(Of T) (
safeHandle As SafeHandle,
func As Func(Of IntPtr, T)
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T WithHandle(
SafeHandle^ safeHandle,
Func<IntPtr, T>^ func
)
[<ExtensionAttribute>]
static member WithHandle :
safeHandle : SafeHandle *
func : Func<IntPtr, 'T> -> 'T Parameters
- safeHandle SafeHandle
-
- func FuncIntPtr, T
-
Type Parameters
- T
Return Value
TUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SafeHandle. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also