Aracılığıyla paylaş


AnsiStringMarshaller Sınıf

Tanım

Önemli

Bu API, CLS uyumlu değildir.

ANSI dizeleri için marshaller.

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
Devralma
AnsiStringMarshaller
Öznitelikler

Yöntemler

ConvertToManaged(Byte*)

Yönetilmeyen bir dizeyi yönetilen sürüme dönüştürür.

ConvertToUnmanaged(String)

Dizeyi yönetilmeyen bir sürüme dönüştürür.

Free(Byte*)

Yönetilmeyen dize için belleği boşaltır.

Şunlara uygulanır