Ejemplo n.º 1
0
 public MailboxStoreIdParameter(MailboxStoreIdentity objectId)
 {
     if (objectId == null)
     {
         throw new ArgumentNullException("objectId");
     }
     this.rawIdentity = objectId.ToString();
     this.name        = objectId.MailboxOwnerId.Name;
 }
Ejemplo n.º 2
0
        void IIdentityParameter.Initialize(ObjectId objectId)
        {
            MailboxStoreIdentity mailboxStoreIdentity = objectId as MailboxStoreIdentity;

            if (mailboxStoreIdentity == null)
            {
                throw new ArgumentException(Strings.ErrorInvalidParameterType("objectId", typeof(MailboxStoreIdentity).Name), "objectId");
            }
            this.rawIdentity = mailboxStoreIdentity.ToString();
            this.name        = mailboxStoreIdentity.MailboxOwnerId.Name;
        }