The messageChangeFull element contains the complete content of a new or changed message: the message properties, the recipients, and the attachments. messageChangeFull = IncrSyncChg messageChangeHeader IncrSyncMessage propList MessageChildren
Inheritance: MessageChange
Ejemplo n.º 1
0
 /// <summary>
 /// Deserialize a messageChange from a stream.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>A messageChange object.</returns>
 public static SyntacticalBase DeserializeFrom(FastTransferStream stream)
 {
     if (MessageChangeFull.Verify(stream))
     {
         return(new MessageChangeFull(stream));
     }
     else if (MessageChangePartial.Verify(stream))
     {
         return(new MessageChangePartial(stream));
     }
     else
     {
         AdapterHelper.Site.Assert.Fail("The stream cannot be deserialized successfully.");
         return(null);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Verify that a stream's current position contains a serialized messageChange.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains
 /// a serialized messageChange, return true, else false</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return(MessageChangeFull.Verify(stream) ||
            MessageChangePartial.Verify(stream));
 }