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*)

Преобразует неуправляемую строку в управляемую версию.

ConvertToUnmanaged(String)

Преобразует строку в неуправляемую версию.

Free(UInt16*)

Освобождает память для неуправляемой строки.

GetPinnableReference(String)

Возвращает закрепляемую ссылку для указанной строки.

Применяется к