Represents the publish Status of a sheet.
Exemple #1
0
            /// <summary>
            /// Builds the.
            /// </summary>
            /// <returns> the sheet publish </returns>
            public virtual SheetPublish Build()
            {
                if (readOnlyLiteEnabled == null || readOnlyFullEnabled == null || readWriteEnabled == null)
                {
                    throw new InvalidOperationException("'Read only lite', 'read only full' and 'read write' must be set to " + "update the publishing status.");
                }

                SheetPublish sheetPublish = new SheetPublish();

                sheetPublish.readOnlyLiteEnabled = readOnlyLiteEnabled;
                sheetPublish.readOnlyFullEnabled = readOnlyFullEnabled;
                sheetPublish.readWriteEnabled    = readWriteEnabled;
                sheetPublish.icalEnabled         = icalEnabled;
                return(sheetPublish);
            }
            /// <summary>
            /// Builds the.
            /// </summary>
            /// <returns> the sheet publish </returns>
            public virtual SheetPublish Build()
            {
                if (readOnlyLiteEnabled == null || readOnlyFullEnabled == null || readWriteEnabled == null)
                {
                    throw new InvalidOperationException("'Read only lite', 'read only full' and 'read write' must be set to " + "update the publishing status.");
                }

                SheetPublish sheetPublish = new SheetPublish();
                sheetPublish.readOnlyLiteEnabled = readOnlyLiteEnabled;
                sheetPublish.readOnlyFullEnabled = readOnlyFullEnabled;
                sheetPublish.readWriteEnabled = readWriteEnabled;
                sheetPublish.icalEnabled = icalEnabled;
                return sheetPublish;
            }