BStrStringMarshaller Класс

Определение

Важно!

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

Маршализатор для строк BSTR.

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

Методы

ConvertToManaged(UInt16*)

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

ConvertToUnmanaged(String)

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

Free(UInt16*)

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

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