Utf16StringMarshaller.GetPinnableReference(String) 方法

定义

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

public:
 static char ^ GetPinnableReference(System::String ^ str);
public static ref readonly char? GetPinnableReference (string? str);
static member GetPinnableReference : string -> char
Public Shared Function GetPinnableReference (str As String) As Char

参数

str
String

要获取其引用的字符串。

返回

可固定引用。

适用于