Utf16StringMarshaller 類別

定義

重要

此 API 不符合 CLS 規範。

UTF-16 字串的封送處理器。

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
繼承
Utf16StringMarshaller
屬性

方法

ConvertToManaged(UInt16*)

將 Unmanaged 字串轉換為 Managed 版本。

ConvertToUnmanaged(String)

將字串轉換為 Unmanaged 版本。

Free(UInt16*)

釋放 Unmanaged 字串的記憶體。

GetPinnableReference(String)

取得指定字串的可釘選參考。

適用於