NameTable.Get 方法

定義

取得原子化字串。

多載

Get(String)

取得具有指定值的原子化字串。

Get(Char[], Int32, Int32)

取得包含與指定陣列中指定字元範圍內的字元相同的字串。

備註

如需已儘量縮減之字串的詳細資訊,請參閱 NameTable

Get(String)

取得具有指定值的原子化字串。

public:
 override System::String ^ Get(System::String ^ value);
public override string Get (string value);
public override string? Get (string value);
override this.Get : string -> string
Public Overrides Function Get (value As String) As String

參數

value
String

要尋找的名稱。

傳回

String

原子化字串物件;如果字串尚未原子化,則為 null

例外狀況

valuenull

備註

如需已儘量縮減之字串的詳細資訊,請參閱 NameTable

適用於

Get(Char[], Int32, Int32)

取得包含與指定陣列中指定字元範圍內的字元相同的字串。

public:
 override System::String ^ Get(cli::array <char> ^ key, int start, int len);
public override string Get (char[] key, int start, int len);
public override string? Get (char[] key, int start, int len);
override this.Get : char[] * int * int -> string
Public Overrides Function Get (key As Char(), start As Integer, len As Integer) As String

參數

key
Char[]

包含要尋找之名稱的字元陣列。

start
Int32

陣列中以零起始的索引,指定名稱的第一個字元。

len
Int32

名稱中字元的數目。

傳回

String

原子化字串,如果字串尚未原子化,則為 null。 如果 len 為零,則會傳回 String.Empty。

例外狀況

0 > start

-或- start >= key.Length -或- len >= key.Length 如果 len =0,上述條件就不會造成例外狀況擲回。

備註

如需已儘量縮減之字串的詳細資訊,請參閱 NameTable

適用於