String.GetPinnableReference 方法
定义
返回对索引 0 处字符串的元素的引用。Returns a reference to the element of the string at index zero.
public:
char ^ GetPinnableReference();
public ref readonly char GetPinnableReference ();
member this.GetPinnableReference : unit -> char
Public Function GetPinnableReference () As Char
返回
一个字符,表示对索引 0 处字符串的元素的引用。A character representing the reference to the element of the string at index zero.
异常
字符串为 NULL。The string is null.
注解
GetPinnableReference
方法返回一个字符,该字符可用于将 String 固定在内存中。The GetPinnableReference
method returns a character that can be used for pinning a String in memory. 需要支持在 fixed 语句中使用 String。It is required to support the use of a String within a fixed statement.