String.GetPinnableReference 方法

定義

傳回位於索引零的字串元素參考。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

傳回

字元,代表位於索引零的字串元素參考。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 語句中使用 StringIt is required to support the use of a String within a fixed statement.

適用於