Пример #1
0
        public UserCreateParameters(bool accountEnabled, string displayName, PasswordProfile passwordProfile, string userPrincipalName, string mailNickname)
        {
            if (displayName == null)
            {
                throw new ArgumentNullException(nameof(displayName));
            }
            if (passwordProfile == null)
            {
                throw new ArgumentNullException(nameof(passwordProfile));
            }
            if (userPrincipalName == null)
            {
                throw new ArgumentNullException(nameof(userPrincipalName));
            }
            if (mailNickname == null)
            {
                throw new ArgumentNullException(nameof(mailNickname));
            }

            AccountEnabled    = accountEnabled;
            DisplayName       = displayName;
            PasswordProfile   = passwordProfile;
            UserPrincipalName = userPrincipalName;
            MailNickname      = mailNickname;
        }
Пример #2
0
 internal UserUpdateParameters(string immutableId, string usageLocation, string givenName, string surname, UserType?userType, IDictionary <string, object> additionalProperties, bool?accountEnabled, string displayName, PasswordProfile passwordProfile, string userPrincipalName, string mailNickname) : base(immutableId, usageLocation, givenName, surname, userType, additionalProperties)
 {
     AccountEnabled    = accountEnabled;
     DisplayName       = displayName;
     PasswordProfile   = passwordProfile;
     UserPrincipalName = userPrincipalName;
     MailNickname      = mailNickname;
 }