Class XPathVariable
Represents a variable in an XPath query.
Inheritance
System.Object
Namespace: Umbraco.Core.Xml
Assembly: Umbraco.Core.dll
Syntax
public class XPathVariable
Remarks
The name must be foo
in the constructor and $foo
in the XPath query.
Constructors
View SourceXPathVariable(String, String)
Initializes a new instance of the XPathVariable class with a name and a value.
Declaration
public XPathVariable(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | value |
Properties
View SourceName
Gets or sets the name of the variable.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Value
Gets or sets the value of the variable.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
System.String |