AnsiStringMarshaller Класс

Определение

Важно!

Этот API несовместим с CLS.

Маршалер для строк ANSI.

public ref class AnsiStringMarshaller abstract sealed
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.String), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.String), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller+ManagedToUnmanagedIn))]
public static class AnsiStringMarshaller
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.String), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller))>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.String), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller+ManagedToUnmanagedIn))>]
type AnsiStringMarshaller = class
Public Class AnsiStringMarshaller
Наследование
AnsiStringMarshaller
Атрибуты

Методы

ConvertToManaged(Byte*)

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

ConvertToUnmanaged(String)

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

Free(Byte*)

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

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