Proprietà ConstraintRelation.Constraints
Si applica a: CRM 2015 on-prem, CRM Online
Gets or sets the set of additional constraints.
Spazio dei nomi: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)
Sintassi
'Dichiarazione
<DataMemberAttribute> _
Public Property Constraints As String
[DataMemberAttribute]
public string Constraints { get; set; }
Valore proprietà
Type: Stringa
The set of additional constraints.
Esempio
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;
Note
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.
Thread Safety
Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.
Piattaforme
Piattaforme di sviluppo
Windows Vista, Windows Server 2003 e
Piattaforme di destinazione
Windows Vista,Windows XP
Change History
Vedere anche
Riferimento
Classe ConstraintRelation
Membri ConstraintRelation
Spazio dei nomi Microsoft.Crm.Sdk.Messages
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.