EcmDocumentRouterRule.ConditionsString EcmDocumentRouterRule.ConditionsString EcmDocumentRouterRule.ConditionsString Property


Gets or sets the XML string representing the conditions that must be matched for this rule to execute.

 property System::String ^ ConditionsString { System::String ^ get(); void set(System::String ^ value); };
public string ConditionsString { get; set; }
Public Property ConditionsString As String
Property Value


Conditions configured for this rule determine whether the document is organized by this rule.

For a rule to organize a document into a library within the site or to another location, the metadata associated with the document must match the conditions defined by the rule. Each condition operates on a property of the rule's content type. The conditions of a rule are well-formed XML defined by:

<xs:schema xmlns:xs="">
<xs:complexType name="Conditions">
      <xs:element minOccurs="0" maxOccurs="5" name="Condition">
            <xs:element minOccurs="1" maxOccurs="1" name="Column" type="xs:string" />
            <xs:element minOccurs="1" maxOccurs="1" name="Operator">
                  <xs:restriction base="xs:string">
                     <xs:enumeration value="IsEqual" />
                     <xs:enumeration value="IsNotEqual" />
                     <xs:enumeration value="GreaterThan" />
                     <xs:enumeration value="LessThan" />
                     <xs:enumeration value="GreaterThanOrEqual" />
                     <xs:enumeration value="LessThanOrEqual" />
                     <xs:enumeration value="BeginsWith" />
                     <xs:enumeration value="NotBeginsWith" />
                     <xs:enumeration value="EndsWith" />
                     <xs:enumeration value="NotEndsWith" />
                     <xs:enumeration value="Contains" />
                     <xs:enumeration value="NotContains" />
                     <xs:enumeration value="EqualsOrIsAChildOf" />
                     <xs:enumeration value="NotEqualsOrIsAChildOf" />
                     <xs:enumeration value="IsEmpty" />
                     <xs:enumeration value="IsNotEmpty" />
                     <xs:enumeration value="ContainsAny" />
                     <xs:enumeration value="ContainsAnyOrChildOf" />
                     <xs:enumeration value="ContainsAllOrChildOf" />
            <xs:element minOccurs="1" maxOccurs="1" name="Value"type="xs:string"/>

Column: A string representing the field on which the condition is based. The value of the column element must be in the format: field id|field internal name|field title where field id is the GUID for the SPField, field internal name is the InternalName property of the SPField, and field title is the Title property of the SPField. User (User), URL (URL), calculated (Calculated), hidden, and read-only fields are not valid fields for conditions.

Operator: Operators supported for a field depend upon the type (SPFieldType) of the field used in the condition. Fields of Boolean type support only the IsEqual and IsNotEqual operators.

Value: The field value used when evaluating this rule on an incoming document. This is used as an operand if a binary operator is used.

Applies to