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>)

LanguageSpecificStringDictionary 中添加键/值对。Adds a key/value pair to the LanguageSpecificStringDictionary.

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

将语言和关联的字符串添加到 LanguageSpecificStringDictionary 中。Adds 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 的浅表副本。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().

扩展方法

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>)

在给定其泛型参数 TDataTable 的输入 DataRow 对象的情况下,返回包含 IEnumerable<T> 对象副本的 DataRowReturns 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)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies 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)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies 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)

IEnumerable 转换为 IQueryableConverts 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.

适用于