Show / Hide Table of Contents

Property WhereClause

WhereClause

Gets or sets the SQL WHERE clause expression that limits the set of features for which labels will be generated and placed.

Declaration
public string WhereClause { get; set; }
Property Value
Type Description
System.String

The SQL WHERE clause expression that limits the set of features for which labels will be generated and placed.

Remarks

This is a SQL where clause that can refer to the attributes of the feature, for example:

  • NAME LIKE 'A%' (Only label features with NAME attribute values starting with 'A').
  • (LENGTH > CAPACITY) and (TYPE = 1) (Only label features whose attributes satisfy the SQL condition).

The default value is an empty string, which will allow all features in the data source and extent to be labeled.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.11 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.11 - 200.7
Xamarin.Android100.11 - 100.15
Xamarin.iOS100.11 - 100.15
UWP100.11 - 200.7
In This Article
Back to top Copyright © 2022 Esri.