Class PropertyCriteria
Represents information about a property criteria for a property search
Inheritance
Inherited Members
Namespace: EPiServer
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class PropertyCriteria
Remarks
Refer to
"Searching and Filtering" under "Navigations and Listings" in the Developer Guide for more information and examples.
Constructors
PropertyCriteria()
Declaration
public PropertyCriteria()
Properties
Condition
What condition that will be checked
Declaration
public CompareCondition Condition { get; set; }
Property Value
Type | Description |
---|---|
CompareCondition |
IsNull
Test for value set to null
Declaration
public bool IsNull { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Name of property
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
For example, if you want to search all pages that have a specific name, you would set this property to 'PageName', and the Value property to the string you want to search for.
Required
Is this criteria required for a match
Declaration
public bool Required { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Defaults to false |
Remarks
If you have several criterias in one search, you can set this to true to indicate a logical AND, instead of the default OR which is used in the search.
Type
Value of criteria
Declaration
public PropertyDataType Type { get; set; }
Property Value
Type | Description |
---|---|
PropertyDataType |
Value
Value of property
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
When searching for categories, the value can be either a single category ID or a comma separated list of IDs (for example "1,3,5"). Comma separated categories are ORed when the propertysearch is executed.