Aracılığıyla paylaş


Utf16StringMarshaller Sınıf

Tanım

Önemli

Bu API, CLS uyumlu değildir.

UTF-16 dizeleri için bir marshaller.

public ref class Utf16StringMarshaller abstract sealed
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.String), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller))]
public static class Utf16StringMarshaller
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.String), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller))>]
type Utf16StringMarshaller = class
Public Class Utf16StringMarshaller
Devralma
Utf16StringMarshaller
Öznitelikler

Yöntemler

ConvertToManaged(UInt16*)

Yönetilmeyen bir dizeyi yönetilen sürüme dönüştürür.

ConvertToUnmanaged(String)

Dizeyi yönetilmeyen bir sürüme dönüştürür.

Free(UInt16*)

Yönetilmeyen dize için belleği serbest bırakır.

GetPinnableReference(String)

Belirtilen dize için sabitlenebilir bir başvuru alır.

Şunlara uygulanır