Propriété ConstraintRelation.Constraints
S'applique à: CRM 2015 on-prem, CRM Online
Gets or sets the set of additional constraints.
Espace de noms: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (dans Microsoft.Crm.Sdk.Proxy.dll)
Syntaxe
'Déclaration
<DataMemberAttribute> _
Public Property Constraints As String
[DataMemberAttribute]
public string Constraints { get; set; }
Valeur de propriété
Type: Chaîne
The set of additional constraints.
Exemple
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;
Remarques
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.
Cohérence de thread
Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.
Plateformes
Plateformes de développement
Windows Vista, Windows Server 2003 et
Plateformes cibles
Windows Vista,Windows XP
Change History
Voir aussi
Référence
Classe ConstraintRelation
Membres ConstraintRelation
Espace de noms Microsoft.Crm.Sdk.Messages
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.