SafeHandleMarshaller<T>.ManagedToUnmanagedRef Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Marshals a SafeHandle as its underlying handle value as a ref
parameter in managed-to-unmanaged scenarios like P/Invokes.
public: where T : SafeHandlevalue class SafeHandleMarshaller<T>::ManagedToUnmanagedRef
public struct SafeHandleMarshaller<T>.ManagedToUnmanagedRef where T : SafeHandle
type SafeHandleMarshaller<'T (requires 'T :> SafeHandle)>.ManagedToUnmanagedRef = struct
Public Structure SafeHandleMarshaller(Of T).ManagedToUnmanagedRef
- T
- Inheritance
Safe |
Initializes a new instance of SafeHandleMarshaller<T>.ManagedToUnmanagedRef in a default state. |
Free() |
Frees any resources and reference counts owned by the marshaller. |
From |
Initializes the marshaller from a managed handle. |
From |
Initializes the marshaller from an unmanaged handle. |
On |
Notifies the marshaller that the native call has been invoked. |
To |
Retrieves the managed handle from the marshaller. |
To |
Retrieves the unmanaged handle. |
Proizvod | Verzije |
---|---|
.NET | 8, 9, 10 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: