Пример #1
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="TeamMemberPolicies" />
        /// class.</para>
        /// </summary>
        /// <param name="sharing">Policies governing sharing.</param>
        /// <param name="emmState">This describes the Enterprise Mobility Management (EMM)
        /// state for this team. This information can be used to understand if an organization
        /// is integrating with a third-party EMM vendor to further manage and apply
        /// restrictions upon the team's Dropbox usage on mobile devices. This is a new feature
        /// and in the future we'll be adding more new fields and additional
        /// documentation.</param>
        /// <param name="officeAddin">The admin policy around the Dropbox Office Add-In for
        /// this team.</param>
        /// <param name="suggestMembersPolicy">The team policy on if teammembers are allowed to
        /// suggest users for admins to invite to the team.</param>
        public TeamMemberPolicies(TeamSharingPolicies sharing,
                                  EmmState emmState,
                                  OfficeAddInPolicy officeAddin,
                                  SuggestMembersPolicy suggestMembersPolicy)
        {
            if (sharing == null)
            {
                throw new sys.ArgumentNullException("sharing");
            }

            if (emmState == null)
            {
                throw new sys.ArgumentNullException("emmState");
            }

            if (officeAddin == null)
            {
                throw new sys.ArgumentNullException("officeAddin");
            }

            if (suggestMembersPolicy == null)
            {
                throw new sys.ArgumentNullException("suggestMembersPolicy");
            }

            this.Sharing              = sharing;
            this.EmmState             = emmState;
            this.OfficeAddin          = officeAddin;
            this.SuggestMembersPolicy = suggestMembersPolicy;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="TeamMemberPolicies" />
        /// class.</para>
        /// </summary>
        /// <param name="sharing">Policies governing sharing.</param>
        /// <param name="emmState">This describes the Enterprise Mobility Management (EMM)
        /// state for this team. This information can be used to understand if an organization
        /// is integrating with a third-party EMM vendor to further manage and apply
        /// restrictions upon the team's Dropbox usage on mobile devices. This is a new feature
        /// and in the future we'll be adding more new fields and additional
        /// documentation.</param>
        public TeamMemberPolicies(TeamSharingPolicies sharing,
                                  EmmState emmState)
        {
            if (sharing == null)
            {
                throw new sys.ArgumentNullException("sharing");
            }

            if (emmState == null)
            {
                throw new sys.ArgumentNullException("emmState");
            }

            this.Sharing  = sharing;
            this.EmmState = emmState;
        }