V12: Deprecate XPath (#14372)

* Deprecate all outward facing methods that uses XPath

* Add more obsolete messages

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
This commit is contained in:
Nikolaj Geisle
2023-07-07 11:12:04 +02:00
committed by GitHub
parent 16c78b76dd
commit d116366b28
41 changed files with 97 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ public class ContentErrorPage : ValidatableEntryBase
/// <summary>
/// Gets or sets a value for the content XPath.
/// </summary>
[Obsolete("The current implementation of XPath is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
public string? ContentXPath { get; set; }
/// <summary>
@@ -39,6 +41,7 @@ public class ContentErrorPage : ValidatableEntryBase
/// <summary>
/// Gets a value indicating whether the <see cref="ContentXPath" /> field is populated.
/// </summary>
[Obsolete("The current implementation of XPath is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
public bool HasContentXPath => !string.IsNullOrEmpty(ContentXPath);
/// <summary>