This documentation is archived and is not being maintained.

IXsltContextVariable Interface

Provides an interface to a given variable that is defined in the style sheet during runtime execution.

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

public interface IXsltContextVariable

The IXsltContextVariable type exposes the following members.

Public propertyIsLocalGets a value indicating whether the variable is local.
Public propertyIsParamGets a value indicating whether the variable is an Extensible Stylesheet Language Transformations (XSLT) parameter. This can be a parameter to a style sheet or a template.
Public propertyVariableTypeGets the XPathResultType representing the XML Path Language (XPath) type of the variable.

Public methodEvaluateEvaluates the variable at runtime and returns an object that represents the value of the variable.

For more information on using IXsltContextVariable , see article Q324899, "HOW TO: Implement and Use Custom Functions When You Execute XPath Queries in Visual Basic .NET" in the Microsoft Knowledge Base at

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.