SafeHandleMarshaller<T>.ManagedToUnmanagedIn Struct

Definition

Marshals a SafeHandle as its underlying handle value as an in parameter or a parameter passed by value in managed-to-unmanaged scenarios like P/Invokes.

C#
public struct SafeHandleMarshaller<T>.ManagedToUnmanagedIn where T : SafeHandle

Type Parameters

T
Inheritance
SafeHandleMarshaller<T>.ManagedToUnmanagedIn

Methods

Free()

Releases any references that are keeping the managed handle alive.

FromManaged(T)

Initializes the marshaller from a managed handle.

ToUnmanaged()

Gets the unmanaged handle.

Applies to

Product Versions
.NET 8, 9