ChangeRequestType Element

System.Object

ChangeRequestType

 

Client Declaration

Represents the actions to be applied to a single Content Engine object. An array of ChangeRequestType elements are contained in an ExecuteChangesRequest request of an ExecuteChanges operation.

 

Element Structure

Elements

Attributes

Attributes Specific to .NET Clients

 

Code Example

// Build the change request, which consists of actions and the object they will act on
ChangeRequestType elemChangeRequestType = new ChangeRequestType();
 
// Create array for one action
elemChangeRequestType.Action = new ActionType[1];
 
// Assign it to a previously created Create action
elemChangeRequestType.Action[0] = (ActionType)createVerb;    
 
// Specify the target object for the action 
elemChangeRequestType.TargetSpecification = new ObjectReference(); 
elemChangeRequestType.TargetSpecification.classId = "ObjectStore";
elemChangeRequestType.TargetSpecification.objectId = txtLibrary.Text; 
elemChangeRequestType.id = "1";
 
// Build a list of properties to exclude on the refreshed folder object that is returned
string[] excludeProps = new string[2];
excludeProps[0] = "Owner";
excludeProps[1] = "DateLastModified";
 
// Assign the list of props to exclude to the change request
elemChangeRequestType.RefreshFilter = new PropertyFilterType();
elemChangeRequestType.RefreshFilter.ExcludeProperties = excludeProps;

 

XML Schema

<xsd:complexType name="ChangeRequestType">
   <xsd:sequence>
      <xsd:element name="TargetSpecification" type="ObjectReference"/>
      <xsd:element maxOccurs="unbounded" minOccurs="0" name="Action" type="ActionType"/>
      <xsd:element minOccurs="0" name="ActionProperties" type="ModifiedPropertiesType"/>
      <xsd:element minOccurs="0" name="RefreshFilter" type="PropertyFilterType"/>
   </xsd:sequence>
   <xsd:attribute name="id" type="xsd:ID"/>
   <xsd:attribute name="updateSequenceNumber" type="xsd:int"/>
</xsd:complexType>