Skip to main content
Carries information about a restriction on the query of an archive provider.

Constructors

NSArchiveRestrictionInfo()

Initializes a new instance of the NSArchiveRestrictionInfo class.

Methods

GetColumnInfo()

Returns: CRMScript.NetServer.NSArchiveColumnInfo - Optional complete NSArchiveColumnInfo for this restriction; in that case, ColumnInfo.Name == this.Name will always be true. Example:

GetDisplayValues()

Returns: CRMScript.Global.String[] - Display representation of values.
List ID’s are decoded to display texts, other values are represented in a format suitable for decoding and display through the CultureDataFormatter.
Example:

GetInterOperator()

Gets inter-restriction operator that describes how this restriction is related to the next one in an array.
Returns: CRMScript.Global.Integer - inter-restriction operator 0 = None; 1 = And; 2 = Or.
Default for new ArchiveRestrictionInfo objects is And
Example:

GetInterParenthesis()

Gets the parenthesis (if any) associated with this restriction.
Returns: CRMScript.Global.Integer
Positive values indicate a number of opening parentheses (deepening nesting level), while negative numbers indicate closing parentheses. Zero means no change in nesting level (no parentheses).
Example:

GetIsActive()

Returns: CRMScript.Global.Bool - Is this restriction active?
Inactive restrictions will not influence the generated query.
Example:

GetName()

Returns: CRMScript.Global.String - The programmatic column name, including any required prefixes. Example:

GetOperator()

Returns: CRMScript.Global.String - The operator, such as = Example:

GetParenthesis()

Returns: CRMScript.Global.Integer

GetSubRestrictions()

Returns: CRMScript.NetServer.NSArchiveRestrictionInfo[] - Optional collection of sub criteria, usually null but set for Saint counter fields. Example:

GetUniqueHash()

Returns: CRMScript.Global.Integer Example:

GetValues()

Returns: CRMScript.Global.String[] - Values to test against. Example:

SetColumnInfo(NSArchiveColumnInfo)

Returns: CRMScript.Global.Void Example:

SetDisplayValues(String[])

Returns: CRMScript.Global.Void
List IDs are decoded to display texts, other values are represented in a format suitable for decoding and display through the CultureDataFormatter.
Example:

SetInterOperator(Integer)

Gets inter-restriction operator that describes how this restriction is related to the next one in an array.
Returns: CRMScript.Global.Void
Default for new ArchiveRestrictionInfo objects is And
Example:

SetInterParenthesis(Integer)

Gets the parenthesis (if any) associated with this restriction.
Returns: CRMScript.Global.Void
Positive values indicate a number of opening parentheses (deepening nesting level), while negative numbers indicate closing parentheses. Zero means no change in nesting level (no parentheses).
Example:

SetIsActive(Bool)

Activates or deactivates a restriction.
Returns: CRMScript.Global.Void
Inactive restrictions will not influence the generated query.
Example:

SetName(String)

Returns: CRMScript.Global.Void Example:

SetOperator(String)

Returns: CRMScript.Global.Void Example:

SetParenthesis(Integer)

Returns: CRMScript.Global.Void

SetSubRestrictions(NSArchiveRestrictionInfo[])

Returns: CRMScript.Global.Void Example:

SetUniqueHash(Integer)

Returns: CRMScript.Global.Void Example:

SetValues(String[])

Returns: CRMScript.Global.Void Example: