AddExtensionObject()

XsltArgumentList::AddExtensionObject(const String&, const SharedPtr<Object>&) method

Adds a new object to the XsltArgumentList and associates it with the namespace URI.

void System::Xml::Xsl::XsltArgumentList::AddExtensionObject(const String &namespaceUri, const SharedPtr<Object> &extension)

Arguments

ParameterTypeDescription
namespaceUriconst String&The namespace URI to associate with the object. To use the default namespace, specify an empty string.
extensionconst SharedPtr<Object>&The object to add to the list.

Exceptions

ExceptionDescription
ArgumentExceptionThe namespaceUri is either nullptr or http://www.w3.org/1999/XSL/Transform The namespaceUri already has an extension object associated with it.
SecurityExceptionThe caller does not have sufficient permissions to call this method.

See Also