/// <summary>
        /// Initializes a new instance of the <see cref="ChangeServerAdminPasswordRequest"/>
        /// class with the given password.
        /// </summary>
        /// <param name="password">The new password to use on the server.</param>
        public ChangeServerAdminPasswordRequest(string password)
        {
            if (password == null)
                throw new ArgumentNullException("password");
            if (string.IsNullOrEmpty(password))
                throw new ArgumentException("password cannot be empty");

            Details = new ChangeAdminPasswordDetails(password);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ChangeServerAdminPasswordRequest"/>
        /// class with the given password.
        /// </summary>
        /// <param name="password">The new password to use on the server.</param>
        public ChangeServerAdminPasswordRequest(string password)
        {
            if (password == null)
            {
                throw new ArgumentNullException("password");
            }
            if (string.IsNullOrEmpty(password))
            {
                throw new ArgumentException("password cannot be empty");
            }

            Details = new ChangeAdminPasswordDetails(password);
        }