public SPOInformationRightsManagementSettings GetInformationRightsManagementSettings()
        {
            if (_informationRightsManagementSettings != null || this.BaseTemplate == 109)
            {
                return(_informationRightsManagementSettings);
            }

            _list.Context.Load(_list, l => l.InformationRightsManagementSettings);
            _list.Context.ExecuteQuery();
            _informationRightsManagementSettings = new SPOInformationRightsManagementSettings(_list.InformationRightsManagementSettings, _list);

            return(_informationRightsManagementSettings);
        }
Esempio n. 2
0
        public SPOInformationRightsManagementSettings GetInformationRightsManagementSettings()
        {
            if (_informationRightsManagementSettings != null || this.BaseTemplate == 109) return _informationRightsManagementSettings;

            _list.Context.Load(_list, l => l.InformationRightsManagementSettings);
            _list.Context.ExecuteQuery();
            _informationRightsManagementSettings = new SPOInformationRightsManagementSettings(_list.InformationRightsManagementSettings, _list);

            return _informationRightsManagementSettings;
        }