XmlNamespaceMappingCollection XmlNamespaceMappingCollection XmlNamespaceMappingCollection XmlNamespaceMappingCollection Class

Definition

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)
Inheritance
XmlNamespaceMappingCollectionXmlNamespaceMappingCollectionXmlNamespaceMappingCollectionXmlNamespaceMappingCollection
Attributes
Implements

Remarks

The XmlNamespaceMapping class provides a mapping between the namespace specified in your XML binding source and a prefix you specify that you can use in Extensible Application Markup Language (XAML).

Constructors

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

Initializes a new instance of the XmlNamespaceMappingCollection class.

Properties

Count Count Count Count

Gets the number of XmlNamespaceMapping objects in the collection.

DefaultNamespace DefaultNamespace DefaultNamespace DefaultNamespace

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

Gets the XmlNameTable associated with this object.

(Inherited from XmlNamespaceManager)

Methods

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

Adds a XmlNamespaceMapping object to this collection.

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

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)

Adds a text string as a child of this XmlNamespaceMappingCollection object.

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

Removes all XmlNamespaceMapping objects in this collection.

Contains(XmlNamespaceMapping) Contains(XmlNamespaceMapping) Contains(XmlNamespaceMapping) Contains(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()

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

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

Gets the namespace URI for the specified prefix.

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

Finds the prefix declared for the given namespace URI.

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

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

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)

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)

Explicit Interface Implementations

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

For a description of this member, see AddChild(Object).

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

For a description of this member, see AddText(String).

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

For a description of this member, see GetEnumerator().

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

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

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

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

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(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)

Converts 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. 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. 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. 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.

Applies to

See also