BStrStringMarshaller Klasse

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Marshaller für BSTR-Zeichenfolgen.

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
Vererbung
BStrStringMarshaller
Attribute

Methoden

ConvertToManaged(UInt16*)

Konvertiert eine nicht verwaltete Zeichenfolge in eine verwaltete Version.

ConvertToUnmanaged(String)

Konvertiert eine Zeichenfolge in eine nicht verwaltete Version.

Free(UInt16*)

Gibt den Arbeitsspeicher für die nicht verwaltete Zeichenfolge frei.

Gilt für: