LanguageSpecificStringDictionary LanguageSpecificStringDictionary LanguageSpecificStringDictionary LanguageSpecificStringDictionary Class

定義

代表用來表示不同語言中之物件名稱的字串字典。Represents a dictionary of strings that are used to represent the name of an object in different languages.

public ref class LanguageSpecificStringDictionary sealed : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::Windows::Markup::XmlLanguage ^, System::String ^>>, System::Collections::Generic::IDictionary<System::Windows::Markup::XmlLanguage ^, System::String ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::Windows::Markup::XmlLanguage ^, System::String ^>>, System::Collections::IDictionary
public sealed class LanguageSpecificStringDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,string>>, System.Collections.Generic.IDictionary<System.Windows.Markup.XmlLanguage,string>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,string>>, System.Collections.IDictionary
type LanguageSpecificStringDictionary = class
    interface IDictionary<XmlLanguage, string>
    interface ICollection<KeyValuePair<XmlLanguage, string>>
    interface seq<KeyValuePair<XmlLanguage, string>>
    interface IEnumerable
    interface IDictionary
    interface ICollection
Public NotInheritable Class LanguageSpecificStringDictionary
Implements ICollection(Of KeyValuePair(Of XmlLanguage, String)), IDictionary, IDictionary(Of XmlLanguage, String), IEnumerable(Of KeyValuePair(Of XmlLanguage, String))
繼承
LanguageSpecificStringDictionaryLanguageSpecificStringDictionaryLanguageSpecificStringDictionaryLanguageSpecificStringDictionary
實作

屬性

Count Count Count Count

取得 LanguageSpecificStringDictionary 中的字串數目。Gets the number of strings in the LanguageSpecificStringDictionary.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得值,指出 LanguageSpecificStringDictionary 是否唯讀。Gets a value indicating whether the LanguageSpecificStringDictionary is read-only.

Item[XmlLanguage] Item[XmlLanguage] Item[XmlLanguage] Item[XmlLanguage]

取得或設定與指定語言關聯的字串。Gets or sets the string associated with the specified language.

Keys Keys Keys Keys

取得包含字典中索引鍵或 XmlLanguage 物件的集合。Gets a collection containing the keys, or XmlLanguage objects, in the dictionary.

Values Values Values Values

取得包含字典中值或字串的集合。Gets a collection containing the values, or strings, in the dictionary.

方法

Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>)

將索引鍵/值組加入 LanguageSpecificStringDictionaryAdds a key/value pair to the LanguageSpecificStringDictionary.

Add(XmlLanguage, String) Add(XmlLanguage, String) Add(XmlLanguage, String) Add(XmlLanguage, String)

將語言和關聯字串加入至 LanguageSpecificStringDictionaryAdds a language and associated string to the LanguageSpecificStringDictionary.

Clear() Clear() Clear() Clear()

從集合中移除所有項目。Removes all elements from the collection.

Contains(KeyValuePair<XmlLanguage,String>) Contains(KeyValuePair<XmlLanguage,String>) Contains(KeyValuePair<XmlLanguage,String>) Contains(KeyValuePair<XmlLanguage,String>)

判斷 LanguageSpecificStringDictionary 是否包含索引鍵/值組。Determines whether the LanguageSpecificStringDictionary contains the key/value pair.

ContainsKey(XmlLanguage) ContainsKey(XmlLanguage) ContainsKey(XmlLanguage) ContainsKey(XmlLanguage)

判斷 LanguageSpecificStringDictionary 是否包含指定的語言。Determines whether the LanguageSpecificStringDictionary contains the specified language.

CopyTo(KeyValuePair<XmlLanguage,String>[], Int32) CopyTo(KeyValuePair<XmlLanguage,String>[], Int32) CopyTo(KeyValuePair<XmlLanguage,String>[], Int32) CopyTo(KeyValuePair<XmlLanguage,String>[], Int32)

從指定的陣列索引處開始,複製 LanguageSpecificStringDictionary 的項目至陣列。Copies the elements of the LanguageSpecificStringDictionary to an array, starting at a specific array index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through the collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(KeyValuePair<XmlLanguage,String>) Remove(KeyValuePair<XmlLanguage,String>) Remove(KeyValuePair<XmlLanguage,String>) Remove(KeyValuePair<XmlLanguage,String>)

從集合中移除具有指定之索引鍵/值組的項目。Removes the element with the specified key/value pair from the collection.

Remove(XmlLanguage) Remove(XmlLanguage) Remove(XmlLanguage) Remove(XmlLanguage)

根據指定的索引鍵值,移除 LanguageSpecificStringDictionary 中的項目。Removes the element from LanguageSpecificStringDictionary based on the specified key value.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
TryGetValue(XmlLanguage, String) TryGetValue(XmlLanguage, String) TryGetValue(XmlLanguage, String) TryGetValue(XmlLanguage, String)

擷取 LanguageSpecificStringDictionary 中指定之索引鍵或語言的字串值。Retrieves the string value in the LanguageSpecificStringDictionary for a specified key, or language.

明確介面實作

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

如需這個成員的說明,請參閱 CopyTo(Array, Int32)For a description of this member, see CopyTo(Array, Int32).

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

如需這個成員的說明,請參閱 IsSynchronizedFor a description of this member, see IsSynchronized.

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

如需這個成員的說明,請參閱 SyncRootFor a description of this member, see SyncRoot.

IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object)

如需這個成員的說明,請參閱 Add(Object, Object)For a description of this member, see Add(Object, Object).

IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object)

如需這個成員的說明,請參閱 Contains(Object)For a description of this member, see Contains(Object).

IDictionary.GetEnumerator() IDictionary.GetEnumerator() IDictionary.GetEnumerator() IDictionary.GetEnumerator()

如需這個成員的說明,請參閱 GetEnumerator()For a description of this member, see GetEnumerator().

IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize

如需這個成員的說明,請參閱 IsFixedSizeFor a description of this member, see IsFixedSize.

IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object]

如需這個成員的說明,請參閱 Item[Object]For a description of this member, see Item[Object].

IDictionary.Keys IDictionary.Keys IDictionary.Keys IDictionary.Keys

如需這個成員的說明,請參閱 KeysFor a description of this member, see Keys.

IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object)

如需這個成員的說明,請參閱 Remove(Object)For a description of this member, see Remove(Object).

IDictionary.Values IDictionary.Values IDictionary.Values IDictionary.Values

如需這個成員的說明,請參閱 ValuesFor a description of this member, see Values.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

如需這個成員的說明,請參閱 GetEnumerator()For a description of this member, see GetEnumerator().

Extension Methods

Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)
TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)
CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

傳回DataTable,其中包含副本DataRow物件,指定輸入IEnumerable<T>物件其中泛型參數TDataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

傳回包含來源集合中每個節點祖系的項目集合。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

傳回包含來源集合中每個節點祖系的已篩選項目集合。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目之子代節點的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

傳回包含來源集合中每個項目和文件之子代項目的項目集合。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

傳回已篩選的項目集合,其中包含來源集合中每個項目和文件的子代項目。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

傳回來源集合中每個項目和文件的子項目集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

傳回來源集合中每個項目和文件的已篩選子項目集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

傳回包含來源集合中所有節點的節點集合,依據文件順序來排序。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目的子節點集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

在來源集合中,從每一個節點的父節點移除這些節點。Removes every node in the source collection from its parent node.

適用於