/// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupMembersChangeResult" />
        /// class.</para>
        /// </summary>
        /// <param name="groupInfo">The group info after member change operation has been
        /// performed.</param>
        /// <param name="asyncJobId">An ID that can be used to obtain the status of
        /// granting/revoking group-owned resources.</param>
        public GroupMembersChangeResult(GroupFullInfo groupInfo,
                                        string asyncJobId)
        {
            if (groupInfo == null)
            {
                throw new sys.ArgumentNullException("groupInfo");
            }

            if (asyncJobId == null)
            {
                throw new sys.ArgumentNullException("asyncJobId");
            }
            if (asyncJobId.Length < 1)
            {
                throw new sys.ArgumentOutOfRangeException("asyncJobId", "Length should be at least 1");
            }

            this.GroupInfo  = groupInfo;
            this.AsyncJobId = asyncJobId;
        }
Esempio n. 2
0
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="GroupInfo" /> class.</para>
 /// </summary>
 /// <param name="value">The value</param>
 public GroupInfo(GroupFullInfo value)
 {
     this.Value = value;
 }