Utf16StringMarshaller 类

定义

重要

此 API 不符合 CLS。

UTF-16 字符串的封送程序。

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
继承
Utf16StringMarshaller
属性

方法

ConvertToManaged(UInt16*)

将非托管字符串转换为托管版本。

ConvertToUnmanaged(String)

将字符串转换为非托管版本。

Free(UInt16*)

释放非托管字符串的内存。

GetPinnableReference(String)

获取指定字符串的可固定引用。

适用于