XmlNamespaceManager Class

XmlNamespaceManager Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Resolves, adds, and removes namespaces to a collection and provides scope management for these namespaces.

System::Object
  System.Xml::XmlNamespaceManager

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

No code example is currently available or this language may not be supported.

The XmlNamespaceManager type exposes the following members.

  NameDescription
Public methodXmlNamespaceManagerInitializes a new instance of the XmlNamespaceManager class with the specified XmlNameTable.
Top

  NameDescription
Public propertyDefaultNamespaceGets the namespace URI for the default namespace.
Public propertyNameTableGets the XmlNameTable associated with this object.
Top

  NameDescription
Public methodAddNamespaceAdds the given namespace to the collection.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator to use to iterate through the namespaces in the XmlNamespaceManager.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetNamespacesInScopeGets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHasNamespaceGets a value indicating whether the supplied prefix has a namespace defined for the current pushed scope.
Public methodLookupNamespaceGets the namespace URI for the specified prefix.
Public methodLookupPrefixFinds the prefix declared for the given namespace URI.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPopScopePops a namespace scope off the stack.
Public methodPushScopePushes a namespace scope onto the stack.
Public methodRemoveNamespaceRemoves the given namespace for the given prefix.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

XmlNamespaceManager stores prefixes and namespaces as strings.

No code example is currently available or this language may not be supported.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft