String.GetPinnableReference String.GetPinnableReference String.GetPinnableReference String.GetPinnableReference Method

定義

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

例外狀況

備註

方法會傳回可用於String在記憶體中釘選的字元。 GetPinnableReferenceThe 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.

適用於