Property DefinitionExpression
DefinitionExpression
Gets or sets an expression which is a SQL statement WHERE clause to specify the subset of features to be displayed.
Declaration
public string DefinitionExpression { get; set; }
Property Value
Type | Description |
---|---|
System.String | An expression which is a SQL statement WHERE clause to specify the subset of features to be displayed. |
Remarks
The definition expression string uses the SQL-92 WHERE clause syntax. The default value is an empty string, which will allow all annotation features in the data source to be used by the AnnotationLayer.
Warning: Be sure to escape special characters in the expression string as required for your platform.
The DATE keyword expects the date format yyyy-mm-dd
and the TIMESTAMP keyword expects
the time stamp format yyyy-mm-dd hh:mm:ss
. See the ArcGIS Blog article entitled
"Querying Feature Services Date-Time Queries"
for more information.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.12 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.12 - 100.15 |
.NET 5 | 100.12 |
.NET Core 3.1 | 100.12 |
Xamarin.Android | 100.12 - 100.15 |
Xamarin.iOS | 100.12 - 100.15 |
UWP | 100.12 - 100.15 |