Utf16StringMarshaller Klass

Definition

Viktigt!

Detta API uppfyller inte CLS.

En marshaller för UTF-16 strängar.

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
Arv
Utf16StringMarshaller
Attribut

Metoder

Name Description
ConvertToManaged(UInt16*)

Konverterar en ohanterad sträng till en hanterad version.

ConvertToUnmanaged(String)

Konverterar en sträng till en ohanterad version.

Free(UInt16*)

Frigör minne för den ohanterade strängen.

GetPinnableReference(String)

Hämtar en fästbar referens för den angivna strängen.

Gäller för