Utf16StringMarshaller.GetPinnableReference(String) Method

Definition

Gets a pinnable reference for the specified 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

Parameters

str
String

The string to get a reference for.

Returns

A pinnable reference.

Applies to