Search Results for

    Show / Hide Table of Contents
    View Source

    Class XPathVariable

    Represents a variable in an XPath query.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.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 Source

    XPathVariable(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 Source

    Name

    Gets or sets the name of the variable.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    View Source

    Value

    Gets or sets the value of the variable.

    Declaration
    public string Value { get; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • XPathVariable(String, String)
    • Properties
      • Name
      • Value
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX