ConstraintRelation.Constraints Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the set of additional constraints.
public:
property System::String ^ Constraints { System::String ^ get(); void set(System::String ^ value); };
[System.Runtime.Serialization.DataMember]
public string Constraints { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.Constraints : string with get, set
Public Property Constraints As String
Property Value
The set of additional constraints.
- Attributes
Examples
The following example selects the resource only if the name is "John".
string constraint = @"
<Constraints>
<Constraint>
<Expression>
<Body>resource[""name""] == ""John""</Body>
<Parameters>
<Parameter name=""resource""></Parameter>
</Parameters>
</Expression>
</Constraint>
</Constraints>";
constraintRelation.Constraints = constraint;
Remarks
Constraints can specify resources to be included or excluded from the search criteria. Attributes that can be used in the expression for the constraint are:
calendarid
isdisabled
name
organizationid
resourceid
resourceskill
siteid
typecode
The expression also supports operations such as And
, Or
, In
, Not
, and so on.