Files
Umbraco-CMS/src/Umbraco.Core/Xml/XPathVariable.cs
Nikolaj Geisle d116366b28 V12: Deprecate XPath (#14372)
* Deprecate all outward facing methods that uses XPath

* Add more obsolete messages

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-07-07 11:12:04 +02:00

33 lines
991 B
C#

// source: mvpxml.codeplex.com
namespace Umbraco.Cms.Core.Xml;
/// <summary>
/// Represents a variable in an XPath query.
/// </summary>
/// <remarks>The name must be <c>foo</c> in the constructor and <c>$foo</c> in the XPath query.</remarks>
[Obsolete("The current implementation of XPath is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
public class XPathVariable
{
/// <summary>
/// Initializes a new instance of the <see cref="XPathVariable" /> class with a name and a value.
/// </summary>
/// <param name="name"></param>
/// <param name="value"></param>
public XPathVariable(string name, string value)
{
Name = name;
Value = value;
}
/// <summary>
/// Gets or sets the name of the variable.
/// </summary>
public string Name { get; }
/// <summary>
/// Gets or sets the value of the variable.
/// </summary>
public string Value { get; }
}