NameTable.Get NameTable.Get NameTable.Get NameTable.Get Method

定義

取得原子化字串。Gets the atomized string.

多載

Get(String) Get(String) Get(String) Get(String)

取得具有指定值的原子化字串。Gets the atomized string with the specified value.

Get(Char[], Int32, Int32) Get(Char[], Int32, Int32) Get(Char[], Int32, Int32) Get(Char[], Int32, Int32)

取得包含與指定陣列中指定字元範圍內的字元相同的字串。Gets the atomized string containing the same characters as the specified range of characters in the given array.

備註

如需已儘量縮減之字串的詳細資訊,請參閱 NameTableFor more information on atomized strings, see NameTable.

Get(String) Get(String) Get(String) Get(String)

取得具有指定值的原子化字串。Gets the atomized string with the specified value.

public:
 override System::String ^ Get(System::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 String String

要尋找的名稱。The name to find.

傳回

原子化字串物件;如果字串尚未原子化,則為 nullThe atomized string object or null if the string has not already been atomized.

例外狀況

備註

如需已儘量縮減之字串的詳細資訊,請參閱 NameTableFor more information on atomized strings, see NameTable.

Get(Char[], Int32, Int32) Get(Char[], Int32, Int32) Get(Char[], Int32, Int32) Get(Char[], Int32, Int32)

取得包含與指定陣列中指定字元範圍內的字元相同的字串。Gets the atomized string containing the same characters as the specified range of characters in the given array.

public:
 override System::String ^ Get(cli::array <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[]

包含要尋找之名稱的字元陣列。The character array containing the name to find.

start
Int32 Int32 Int32 Int32

陣列中以零起始的索引,指定名稱的第一個字元。The zero-based index into the array specifying the first character of the name.

len
Int32 Int32 Int32 Int32

名稱中字元的數目。The number of characters in the name.

傳回

原子化字串,如果字串尚未原子化,則為 nullThe atomized string or null if the string has not already been atomized. 如果 len 為零,則會傳回 String.Empty。If len is zero, String.Empty is returned.

例外狀況

0 > start0 > start

-或--or- start >= key.Lengthstart >= key.Length -或--or- len >= key.Lengthlen >= key.Length 如果 len =0,上述條件就不會造成例外狀況擲回。The above conditions do not cause an exception to be thrown if len =0.

備註

如需已儘量縮減之字串的詳細資訊,請參閱 NameTableFor more information on atomized strings, see NameTable.

適用於