GetNamespacesInScope()

XmlTextReader::GetNamespacesInScope(XmlNamespaceScope) method

Returns a collection that contains all namespaces currently in-scope.

SharedPtr<Collections::Generic::IDictionary<String, String>> System::Xml::XmlTextReader::GetNamespacesInScope(XmlNamespaceScope scope) override

Arguments

ParameterTypeDescription
scopeXmlNamespaceScopeAn XmlNamespaceScope value that specifies the type of namespace nodes to return.

Return Value

An IDictionary object that contains all the current in-scope namespaces. If the reader is not positioned on an element, an empty dictionary (no namespaces) is returned.

See Also