XmlNamespaceMappingCollection XmlNamespaceMappingCollection XmlNamespaceMappingCollection XmlNamespaceMappingCollection Class

定义

表示 XmlNamespaceMapping 对象集合。Represents a collection of XmlNamespaceMapping objects.

public ref class XmlNamespaceMappingCollection : System::Xml::XmlNamespaceManager, System::Collections::Generic::ICollection<System::Windows::Data::XmlNamespaceMapping ^>, System::Collections::Generic::IEnumerable<System::Windows::Data::XmlNamespaceMapping ^>
[System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)]
public class XmlNamespaceMappingCollection : System.Xml.XmlNamespaceManager, System.Collections.Generic.ICollection<System.Windows.Data.XmlNamespaceMapping>, System.Collections.Generic.IEnumerable<System.Windows.Data.XmlNamespaceMapping>
type XmlNamespaceMappingCollection = class
    inherit XmlNamespaceManager
    interface ICollection<XmlNamespaceMapping>
    interface seq<XmlNamespaceMapping>
    interface IEnumerable
    interface IAddChild
Public Class XmlNamespaceMappingCollection
Inherits XmlNamespaceManager
Implements ICollection(Of XmlNamespaceMapping), IEnumerable(Of XmlNamespaceMapping)
继承
XmlNamespaceMappingCollectionXmlNamespaceMappingCollectionXmlNamespaceMappingCollectionXmlNamespaceMappingCollection
属性
实现

注解

类提供在绑定源中指定的命名空间与你指定的可在中可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML)使用的前缀之间的映射。 XMLXML XmlNamespaceMappingThe XmlNamespaceMapping class provides a mapping between the namespace specified in your XMLXML binding source and a prefix you specify that you can use in 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML).

构造函数

XmlNamespaceMappingCollection() XmlNamespaceMappingCollection() XmlNamespaceMappingCollection() XmlNamespaceMappingCollection()

初始化 XmlNamespaceMappingCollection 类的新实例。Initializes a new instance of the XmlNamespaceMappingCollection class.

属性

Count Count Count Count

获取集合中 XmlNamespaceMapping 对象的数量。Gets the number of XmlNamespaceMapping objects in the collection.

DefaultNamespace DefaultNamespace DefaultNamespace DefaultNamespace

获取默认命名空间的命名空间 URI。Gets the namespace URI for the default namespace.

(Inherited from XmlNamespaceManager)
IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取一个指示此集合是否为只读的值。Gets a value that indicates whether this collection is read-only.

NameTable NameTable NameTable NameTable

获取与此对象关联的 XmlNameTableGets the XmlNameTable associated with this object.

(Inherited from XmlNamespaceManager)

方法

Add(XmlNamespaceMapping) Add(XmlNamespaceMapping) Add(XmlNamespaceMapping) Add(XmlNamespaceMapping)

将一个 XmlNamespaceMapping 对象添加到此集合。Adds a XmlNamespaceMapping object to this collection.

AddChild(Object) AddChild(Object) AddChild(Object) AddChild(Object)

将一个 XmlNamespaceMapping 对象添加到此集合。Adds a XmlNamespaceMapping object to this collection.

AddNamespace(String, String) AddNamespace(String, String) AddNamespace(String, String) AddNamespace(String, String)

将给定的命名空间添加到集合。Adds the given namespace to the collection.

(Inherited from XmlNamespaceManager)
AddText(String) AddText(String) AddText(String) AddText(String)

添加文本字符串作为此 XmlNamespaceMappingCollection 对象的子级。Adds a text string as a child of this XmlNamespaceMappingCollection object.

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

移除此集合中的所有 XmlNamespaceMapping 对象。Removes all XmlNamespaceMapping objects in this collection.

Contains(XmlNamespaceMapping) Contains(XmlNamespaceMapping) Contains(XmlNamespaceMapping) Contains(XmlNamespaceMapping)

返回一个值,该值指示此集合是否包含指定的 XmlNamespaceMapping 对象。Returns a value that indicates whether this collection contains the specified XmlNamespaceMapping object.

CopyTo(XmlNamespaceMapping[], Int32) CopyTo(XmlNamespaceMapping[], Int32) CopyTo(XmlNamespaceMapping[], Int32) CopyTo(XmlNamespaceMapping[], Int32)

从指定索引处开始,将集合中的项复制到指定的数组。Copies the items of the collection to the specified array, starting at the specified 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()

返回可用于枚举此集合中的项的 IEnumerator 对象。Returns an IEnumerator object that you can use to enumerate the items in this collection.

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

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope)

获取被前缀键控的可用于枚举当前范围内的命名空间的命名空间名称集合。Gets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope.

(Inherited from XmlNamespaceManager)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
HasNamespace(String) HasNamespace(String) HasNamespace(String) HasNamespace(String)

获取一个值,该值指示所提供的前缀是否具有为当前推到的范围定义的命名空间。Gets a value indicating whether the supplied prefix has a namespace defined for the current pushed scope.

(Inherited from XmlNamespaceManager)
LookupNamespace(String) LookupNamespace(String) LookupNamespace(String) LookupNamespace(String)

获取指定前缀的命名空间 URI。Gets the namespace URI for the specified prefix.

(Inherited from XmlNamespaceManager)
LookupPrefix(String) LookupPrefix(String) LookupPrefix(String) LookupPrefix(String)

查找为给定的命名空间 URI 声明的前缀。Finds the prefix declared for the given namespace URI.

(Inherited from XmlNamespaceManager)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
PopScope() PopScope() PopScope() PopScope()

将命名空间范围弹出堆栈。Pops a namespace scope off the stack.

(Inherited from XmlNamespaceManager)
ProtectedGetEnumerator() ProtectedGetEnumerator() ProtectedGetEnumerator() ProtectedGetEnumerator()

返回一般 IEnumerator<T> 对象。Returns a generic IEnumerator<T> object.

PushScope() PushScope() PushScope() PushScope()

将命名空间范围推到堆栈上。Pushes a namespace scope onto the stack.

(Inherited from XmlNamespaceManager)
Remove(XmlNamespaceMapping) Remove(XmlNamespaceMapping) Remove(XmlNamespaceMapping) Remove(XmlNamespaceMapping)

从此集合中移除指定的 XmlNamespaceMapping 对象。Removes the specified XmlNamespaceMapping object from this collection.

RemoveNamespace(String, String) RemoveNamespace(String, String) RemoveNamespace(String, String) RemoveNamespace(String, String)

为给定的前缀移除给定的命名空间。Removes the given namespace for the given prefix.

(Inherited from XmlNamespaceManager)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object)

有关此成员的说明,请参见 AddChild(Object)For a description of this member, see AddChild(Object).

IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String)

有关此成员的说明,请参见 AddText(String)For a description of this member, see AddText(String).

IEnumerable<XmlNamespaceMapping>.GetEnumerator() IEnumerable<XmlNamespaceMapping>.GetEnumerator() IEnumerable<XmlNamespaceMapping>.GetEnumerator() IEnumerable<XmlNamespaceMapping>.GetEnumerator()

有关此成员的说明,请参见 GetEnumerator()For a description of this member, see GetEnumerator().

扩展方法

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.

适用于

另请参阅