อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


SafeHandleMarshaller<T> Class

Definition

Marshals SafeHandle-derived types following the lifetime rules for SafeHandle objects.

C#
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<>+ManagedToUnmanagedIn))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedOut, typeof(System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<>+ManagedToUnmanagedOut))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedRef, typeof(System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<>+ManagedToUnmanagedRef))]
public static class SafeHandleMarshaller<T> where T : SafeHandle

Type Parameters

T

The SafeHandle-derived type.

Inheritance
SafeHandleMarshaller<T>
Attributes

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET 8, 9, 10