コード例 #1
0
 public ResolvedRecipientDetail(string smtpAddress, string routingAddress, string displayName, string routingType, AddressOrigin addressOrigin, int recipientFlags, StoreObjectId storeObjectId, EmailAddressIndex emailAddressIndex, ADObjectId adObjectId)
 {
     this.smtpAddress       = ResolvedRecipientDetail.EnsureNonNull(smtpAddress);
     this.routingAddress    = ResolvedRecipientDetail.EnsureNonNull(routingAddress);
     this.displayName       = ResolvedRecipientDetail.EnsureNonNull(displayName);
     this.routingType       = ResolvedRecipientDetail.EnsureNonNull(routingType);
     this.addressOrigin     = addressOrigin;
     this.recipientFlags    = recipientFlags;
     this.storeObjectId     = storeObjectId;
     this.adObjectId        = adObjectId;
     this.emailAddressIndex = EmailAddressIndex.None;
     if (string.IsNullOrEmpty(displayName))
     {
         this.displayName = this.smtpAddress;
     }
     if (this.storeObjectId != null)
     {
         this.itemId            = this.storeObjectId.ToBase64String();
         this.emailAddressIndex = emailAddressIndex;
         return;
     }
     if (this.adObjectId != null)
     {
         this.itemId = Convert.ToBase64String(this.adObjectId.ObjectGuid.ToByteArray());
         return;
     }
     this.itemId = string.Empty;
 }
コード例 #2
0
 public ResolvedRecipientDetail(string smtpAddress, string routingAddress, string displayName, string routingType, AddressOrigin addressOrigin, int recipientFlags, string itemId, EmailAddressIndex emailAddressIndex)
 {
     this.smtpAddress       = ResolvedRecipientDetail.EnsureNonNull(smtpAddress);
     this.routingAddress    = ResolvedRecipientDetail.EnsureNonNull(routingAddress);
     this.displayName       = ResolvedRecipientDetail.EnsureNonNull(displayName);
     this.routingType       = ResolvedRecipientDetail.EnsureNonNull(routingType);
     this.addressOrigin     = addressOrigin;
     this.recipientFlags    = recipientFlags;
     this.itemId            = ResolvedRecipientDetail.EnsureNonNull(itemId);
     this.emailAddressIndex = emailAddressIndex;
     if (string.IsNullOrEmpty(displayName))
     {
         this.displayName = this.smtpAddress;
     }
 }