SetContext()

XPathExpression::SetContext(SharedPtr<XmlNamespaceManager>) method

When overridden in a derived class, specifies the XmlNamespaceManager object to use for namespace resolution.

virtual void System::Xml::XPath::XPathExpression::SetContext(SharedPtr<XmlNamespaceManager> nsManager)=0

Arguments

ParameterTypeDescription
nsManagerSharedPtr<XmlNamespaceManager>An XmlNamespaceManager object to use for namespace resolution.

XPathExpression::SetContext(SharedPtr<IXmlNamespaceResolver>) method

When overridden in a derived class, specifies the IXmlNamespaceResolver object to use for namespace resolution.

virtual void System::Xml::XPath::XPathExpression::SetContext(SharedPtr<IXmlNamespaceResolver> nsResolver)=0

Arguments

ParameterTypeDescription
nsResolverSharedPtr<IXmlNamespaceResolver>An object that implements the IXmlNamespaceResolver interface to use for namespace resolution.

See Also