Propriedade ConstraintRelation.Constraints
Aplica-se a: CRM 2015 on-prem, CRM Online
Gets or sets the set of additional constraints.
Namespace: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (em Microsoft.Crm.Sdk.Proxy.dll)
Sintaxe
'Declaração
<DataMemberAttribute> _
Public Property Constraints As String
[DataMemberAttribute]
public string Constraints { get; set; }
Valor de Propriedade
Type: Cadeia de caracteres
The set of additional constraints.
Exemplo
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;
Comentários
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.
Segurança do Thread
Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.
Plataformas
Plataformas de desenvolvimento
Windows Vista, Windows Server 2003 e
Plataformas de destino
Windows Vista,Windows XP
Change History
Consulte também
Referência
Classe ConstraintRelation
Membros de ConstraintRelation
Namespace Microsoft.Crm.Sdk.Messages
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.