SafeHandleExtensionsWithHandle(SafeHandle, ActionIntPtr) Method |
Namespace: Ozeki.CommonAssembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.98
Syntaxpublic static void WithHandle(
this SafeHandle safeHandle,
Action<IntPtr> action
)
<ExtensionAttribute>
Public Shared Sub WithHandle (
safeHandle As SafeHandle,
action As Action(Of IntPtr)
)
public:
[ExtensionAttribute]
static void WithHandle(
SafeHandle^ safeHandle,
Action<IntPtr>^ action
)
[<ExtensionAttribute>]
static member WithHandle :
safeHandle : SafeHandle *
action : Action<IntPtr> -> unit Parameters
- safeHandle SafeHandle
-
- action ActionIntPtr
-
Usage 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