Bearbeiten

Freigeben über


XsltArgumentList Class

Definition

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

public ref class XsltArgumentList
public ref class XsltArgumentList sealed
public class XsltArgumentList
public sealed class XsltArgumentList
type XsltArgumentList = class
Public Class XsltArgumentList
Public NotInheritable Class XsltArgumentList
Inheritance
XsltArgumentList

Remarks

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.

Constructors

XsltArgumentList()

Implements a new instance of the XsltArgumentList.

Methods

AddExtensionObject(String, Object)

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

AddParam(String, String, Object)

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

Clear()

Removes all parameters and extension objects from the XsltArgumentList.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetExtensionObject(String)

Gets the object associated with the given namespace.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetParam(String, String)

Gets the parameter associated with the namespace qualified name.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveExtensionObject(String)

Removes the object with the namespace URI from the XsltArgumentList.

RemoveParam(String, String)

Removes the parameter from the XsltArgumentList.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

XsltMessageEncountered

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

Applies to