Class NSArchiveRestrictionInfo
Carries information about a restriction on the query of an archive provider.
Constructors
NSArchiveRestrictionInfo()
Initializes a new instance of the NSArchiveRestrictionInfo class.
Declaration
NSArchiveRestrictionInfo Methods
GetColumnInfo()
Declaration
NSArchiveColumnInfo GetColumnInfo() Examples
NSArchiveRestrictionInfo thing;
NSArchiveColumnInfo columnInfo = thing.GetColumnInfo();
Returns
| Type | Description |
| NSArchiveColumnInfo | Optional complete NSArchiveColumnInfo for this restriction; in that case, ColumnInfo.Name == this.Name will always be true. |
GetDisplayValues()
Declaration
String[] GetDisplayValues() Examples
NSArchiveRestrictionInfo thing;
String[] displayValues = thing.GetDisplayValues();
Returns
| Type | Description |
| String[] | Display representation of values. |
GetInterOperator()
Gets inter-restriction operator that describes how this restriction is related to the next one in an array.
Declaration
Integer GetInterOperator() Examples
NSArchiveRestrictionInfo thing;
Integer interOperator = thing.GetInterOperator();
Returns
| Type | Description |
| Integer | inter-restriction operator 0 = None; 1 = And; 2 = Or. |
GetInterParenthesis()
Gets the parenthesis (if any) associated with this restriction.
Declaration
Integer GetInterParenthesis() Examples
NSArchiveRestrictionInfo thing;
Integer interParenthesis = thing.GetInterParenthesis();
Returns
| Type | Description |
| Integer |
GetIsActive()
Declaration
Bool GetIsActive() Examples
NSArchiveRestrictionInfo thing;
Bool isActive = thing.GetIsActive();
Returns
| Type | Description |
| Bool | Is this restriction active? |
GetName()
Declaration
String GetName() Examples
NSArchiveRestrictionInfo thing;
String name = thing.GetName();
Returns
| Type | Description |
| String | The programmatic column name, including any required prefixes. |
GetOperator()
Declaration
String GetOperator() Examples
NSArchiveRestrictionInfo thing;
String operator = thing.GetOperator();
Returns
| Type | Description |
| String | The operator, such as = |
GetSubRestrictions()
Declaration
NSArchiveRestrictionInfo[] GetSubRestrictions() Examples
NSArchiveRestrictionInfo thing;
NSArchiveRestrictionInfo[] subRestrictions = thing.GetSubRestrictions();
Returns
| Type | Description |
| NSArchiveRestrictionInfo[] | Optional collection of sub criteria, usually null but set for Saint counter fields. |
GetUniqueHash()
Declaration
Integer GetUniqueHash() Examples
NSArchiveRestrictionInfo thing;
Integer uniqueHash = thing.GetUniqueHash();
Returns
| Type | Description |
| Integer |
GetValues()
Declaration
String[] GetValues() Examples
NSArchiveRestrictionInfo thing;
String[] values = thing.GetValues();
Returns
| Type | Description |
| String[] | Values to test against. |
SetColumnInfo(NSArchiveColumnInfo)
Declaration
Void SetColumnInfo(NSArchiveColumnInfo columnInfo) Examples
NSArchiveRestrictionInfo thing;
NSArchiveColumnInfo columnInfo;
thing.SetColumnInfo(columnInfo);
Parameters
| Type | Name | Description |
| NSArchiveColumnInfo | columnInfo | Optional complete NSArchiveColumnInfo for this restriction; in that case, ColumnInfo.Name == this.Name will always be true. |
Returns
| Type | Description |
| Void |
SetDisplayValues(String[])
Declaration
Void SetDisplayValues(String[] displayValues) Examples
NSArchiveRestrictionInfo thing;
String[] displayValues;
thing.SetDisplayValues(displayValues);
Parameters
| Type | Name | Description |
| String[] | displayValues | Display representation of values. |
Returns
| Type | Description |
| Void |
SetInterOperator(Integer)
Gets inter-restriction operator that describes how this restriction is related to the next one in an array.
Declaration
Void SetInterOperator(Integer operator) Examples
NSArchiveRestrictionInfo thing;
Integer interOperator;
thing.SetInterOperator(interOperator);
Parameters
| Type | Name | Description |
| Integer | operator | inter-restriction operator 0 = None; 1 = And; 2 = Or. |
Returns
| Type | Description |
| Void |
SetInterParenthesis(Integer)
Gets the parenthesis (if any) associated with this restriction.
Declaration
Void SetInterParenthesis(Integer interParenthesis) Examples
NSArchiveRestrictionInfo thing;
Integer interParenthesis;
thing.SetInterParenthesis(interParenthesis);
Parameters
| Type | Name | Description |
| Integer | interParenthesis |
Returns
| Type | Description |
| Void |
SetIsActive(Bool)
Activates or deactivates a restriction.
Declaration
Void SetIsActive(Bool isActive) Examples
NSArchiveRestrictionInfo thing;
Bool isActive;
thing.SetIsActive(isActive);
Parameters
| Type | Name | Description |
| Bool | isActive | Is this restriction active? |
Returns
| Type | Description |
| Void |
SetName(String)
Declaration
Void SetName(String name) Examples
NSArchiveRestrictionInfo thing;
String name;
thing.SetName(name);
Parameters
| Type | Name | Description |
| String | name | The programmatic column name, including any required prefixes. |
Returns
| Type | Description |
| Void |
SetOperator(String)
Declaration
Void SetOperator(String operator) Examples
NSArchiveRestrictionInfo thing;
String operator;
thing.SetOperator(operator);
Parameters
| Type | Name | Description |
| String | operator | The operator, such as = |
Returns
| Type | Description |
| Void |
SetParenthesis(Integer)
Declaration
Void SetParenthesis(Integer p) Parameters
| Type | Name | Description |
| Integer | p |
Returns
| Type | Description |
| Void |
SetSubRestrictions(NSArchiveRestrictionInfo[])
Declaration
Void SetSubRestrictions(NSArchiveRestrictionInfo[] subRestrictions) Examples
NSArchiveRestrictionInfo thing;
NSArchiveRestrictionInfo[] subRestrictions;
thing.SetSubRestrictions(subRestrictions);
Parameters
| Type | Name | Description |
| NSArchiveRestrictionInfo[] | subRestrictions | Optional collection of sub criteria, usually null but set for Saint counter fields. |
Returns
| Type | Description |
| Void |