コード例 #1
0
        public BaseActiveDirectoryUser(
            string employeeId,
            string userSid,
            string name,
            string samAccountName,
            string emailAddress,
            string displayName,
            DateTime?accountExpirationDate,
            string givenName,
            string middleName,
            string surname,
            string voiceTelephoneNumber,
            bool?isEnabled)
        {
            Id                  = userSid ?? employeeId;
            Sid                 = userSid ?? employeeId;
            Domain              = name;
            Login               = samAccountName;
            Email               = emailAddress;
            NameOrDescription   = displayName;
            LoginExpirationDate = accountExpirationDate;
            UserExtraInfo       = new BaseUserExtraInfo
            {
                FirstName  = givenName,
                MiddleName = middleName,
                LastName   = surname,
                Phone      = voiceTelephoneNumber,
                IsEnabled  = isEnabled,
            };

            ActiveDirectoryGroups        = new List <BaseActiveDirectoryGroup>();
            ActiveDirectoryThirdPartners = new List <BaseUser>();
            ActiveDirectoryManager       = new BaseUser();
        }
コード例 #2
0
 public BaseUser()
 {
     UserExtraInfo = new BaseUserExtraInfo();
 }