/// <summary>
 /// Initializes a new instance of the <see cref="UpdateInboxRulesException"/> class.
 /// </summary>
 /// <param name="serviceResponse">The rule operation service response.</param>
 /// <param name="ruleOperations">The original operations.</param>
 internal UpdateInboxRulesException(UpdateInboxRulesResponse serviceResponse, IEnumerator <RuleOperation> ruleOperations)
     : base()
 {
     this.serviceResponse = serviceResponse;
     this.errors          = serviceResponse.Errors;
     foreach (RuleOperationError error in this.errors)
     {
         error.SetOperationByIndex(ruleOperations);
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateInboxRulesResponse"/> class.
 /// </summary>
 internal UpdateInboxRulesResponse()
     : base()
 {
     this.errors = new RuleOperationErrorCollection();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Microsoft.Exchange.WebServices.Data.UpdateInboxRulesException"/> class with serialized data.
 /// </summary>
 /// <param name="info">The object that holds the serialized object data.</param>
 /// <param name="context">The contextual information about the source or destination.</param>
 private UpdateInboxRulesException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     this.serviceResponse = (ServiceResponse)info.GetValue("ServiceResponse", typeof(ServiceResponse));
     this.errors          = (RuleOperationErrorCollection)info.GetValue("Errors", typeof(RuleOperationErrorCollection));
 }