Utf16StringMarshaller Class

Definition

Important

This API is not CLS-compliant.

A marshaller for UTF-16 strings.

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
Inheritance
Utf16StringMarshaller
Attributes

Methods

ConvertToManaged(UInt16*)

Converts an unmanaged string to a managed version.

ConvertToUnmanaged(String)

Converts a string to an unmanaged version.

Free(UInt16*)

Frees the memory for the unmanaged string.

GetPinnableReference(String)

Gets a pinnable reference for the specified string.

Applies to