XsltArgumentList Class


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Contains a variable number of arguments which are either XSLT parameters or extension objects.

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


public class XsltArgumentList


Implements a new instance of the XsltArgumentList.

System_CAPS_pubmethodAddExtensionObject(String, Object)

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

System_CAPS_pubmethodAddParam(String, String, Object)

Adds a parameter to the XsltArgumentList and associates it with the namespace qualified name.


Removes all parameters and extension objects from the XsltArgumentList.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Gets the object associated with the given namespace.


Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetParam(String, String)

Gets the parameter associated with the namespace qualified name.


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)


Removes the object with the namespace URI from the XsltArgumentList.

System_CAPS_pubmethodRemoveParam(String, String)

Removes the parameter from the XsltArgumentList.


Returns a string that represents the current object.(Inherited from Object.)


Occurs when a message is specified in the style sheet by the xsl:message element.

This class is used by the Transform method. It allows parameters and extension objects to be invoked from within the style sheet.

When the parameters and objects are added to the XsltArgumentList, they are associated with a namespace qualified name and a namespace URI, respectively.

The following are advantages to passing an object rather than using an embedded script such as <msxsl:script>:

  • Provides better encapsulation and reuse of classes.

  • Allows style sheets to be smaller and more easily maintained.

  • Supports passing node fragments (through the XPathNavigator) to the style sheet.

For more information about using the XsltArgumentList, see XSLT Extension Objects and XSLT Parameters.

.NET Framework
Available since 1.1

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

Return to top