📄 sectioninfo.cs
字号:
namespace ASPNET.StarterKit.Communities {
using System;
using System.Collections;
using System.Data;
//*********************************************************************
//
// SectionInfo Class
//
// Represents all the information about a section.
//
//*********************************************************************
public class SectionInfo {
int _id;
int _communityID;
string _name;
string _title;
string _menuTitle;
string _path;
string _description;
bool _isEnabled;
bool _isSystem;
int _pageType;
bool _isWebBoxesInherited;
string[] _webBoxes;
int _webBoxDisplayMode;
bool _isWebServiceBoxesInherited;
string[] _webServiceBoxes;
int _webServiceBoxDisplayMode;
string _skin;
string _style;
int _parentSectionID;
string _logo;
string _pageHeader;
string _pageFooter;
string _footer;
string _pageMetaKeys;
string _pageMetaDesc;
string[] _viewRoles;
string[] _addRoles;
string[] _editRoles;
string[] _deleteRoles;
int _recordsPerPage = 10;
bool _enableTopics;
bool _enableComments;
string[] _commentRoles;
bool _enableModeration;
string[] _moderateRoles;
bool _enableRatings;
bool _enableCommentRatings;
string[] _rateRoles;
bool _enableNotifications;
bool _inheritTransformations;
string _transformations;
bool _isSectionWebService;
string _webServicePassword;
AllowHtml _allowHtmlInput;
AllowHtml _allowCommentHtmlInput;
string _content;
// SMR - Enh - Begin: Add fail over skin support
string _failOverSkin;
// SMR - Enh - End: Add fail over skin support
//*********************************************************************
//
// ID Property
//
// Represents the section ID.
//
//*********************************************************************
public int ID {
get { return _id; }
}
//*********************************************************************
//
// CommunityID Property
//
// Represents the community associated with the section.
//
//*********************************************************************
public int CommunityID {
get { return _communityID; }
}
//*********************************************************************
//
// Name Property
//
// Represents the section name which is used when building
// the section URL.
//
//*********************************************************************
public string Name {
get { return _name; }
}
//*********************************************************************
//
// Path Property
//
// Represents the section URL.
//
//*********************************************************************
public string Path {
get { return _path; }
}
//*********************************************************************
//
// Title Property
//
// Represents the full name of the section.
//
//*********************************************************************
public string Title {
get { return _title; }
}
//*********************************************************************
//
// MenuTitle Property
//
// Represents the title of the section displayed in menus.
//
//*********************************************************************
public string MenuTitle {
get { return _menuTitle; }
}
//*********************************************************************
//
// BriefDescription Property
//
// Represents the brief description of the section.
//
//*********************************************************************
public string Description {
get { return _description; }
}
//*********************************************************************
//
// IsEnabled Property
//
// When false, section is not displayed in menus.
//
//*********************************************************************
public bool IsEnabled {
get { return _isEnabled;}
}
//*********************************************************************
//
// IsSystem Property
//
// When true, section is a system section (for example, the home section).
//
//*********************************************************************
public bool IsSystem {
get { return _isSystem;}
}
//*********************************************************************
//
// PageType Property
//
// Represents the type of content contained in the section.
//
//*********************************************************************
public int PageType {
get { return _pageType; }
}
//*********************************************************************
//
// IsWebBoxesInherited Property
//
// Indicates whether Web boxes are inherited from parent section.
//
//*********************************************************************
public bool IsWebBoxesInherited {
get { return _isWebBoxesInherited; }
}
//*********************************************************************
//
// WebBoxes Property
//
// Represents the Web boxes displayed in this section.
//
//*********************************************************************
public string[] WebBoxes {
get { return _webBoxes; }
set { _webBoxes = value; }
}
//*********************************************************************
//
// WebBoxDisplayMode Property
//
// Indicates how Web boxes should be displayed.
//
//*********************************************************************
public int WebBoxDisplayMode {
get { return _webBoxDisplayMode; }
set {_webBoxDisplayMode = value;} //SMR - Enh - Add inherit web box display mode
}
//*********************************************************************
//
// IsWebSeriveBoxesInherited Property
//
// Indicates whether Web service boxes are inherited
// from parent section.
//
//*********************************************************************
public bool IsWebServiceBoxesInherited {
get { return _isWebServiceBoxesInherited; }
}
//*********************************************************************
//
// WebServiceBoxes Property
//
// Represents the Web service boxes for this section.
//
//*********************************************************************
public string[] WebServiceBoxes {
get { return _webServiceBoxes; }
set { _webServiceBoxes = value; }
}
//*********************************************************************
//
// WebServiceBoxDisplayMode Property
//
// Indicates how Web service boxes are displayed.
//
//*********************************************************************
public int WebServiceBoxDisplayMode {
get { return _webServiceBoxDisplayMode; }
set {_webServiceBoxDisplayMode = value;} //SMR - Enh - Add inherit web box display mode
}
//*********************************************************************
//
// Skin Property
//
// Represents the page skin used for this section.
//
//*********************************************************************
public string Skin {
get { return _skin; }
}
//*********************************************************************
//
// Style Property
//
// Represents the cascading style sheet applied to this section.
//
//*********************************************************************
public string Style {
get { return _style; }
}
//*********************************************************************
//
// ParentSectionID Property
//
// Represents the parent section of this section.
//
//*********************************************************************
public int ParentSectionID {
get { return _parentSectionID; }
}
//*********************************************************************
//
// Logo Property
//
// Represents the image that appears for this section.
//
//*********************************************************************
public string Logo {
get { return _logo; }
}
//*********************************************************************
//
// Page Header Property
//
// Represents the page header text.
//
//*********************************************************************
public string PageHeader {
get { return _pageHeader; }
}
//*********************************************************************
//
// Page Footer Property
//
// Represents the page footer text.
//
//*********************************************************************
public string PageFooter {
get { return _pageFooter; }
}
//*********************************************************************
//
// Footer Property
//
// Represents the very bottom footer text.
//
//*********************************************************************
public string Footer {
get { return _footer; }
}
//*********************************************************************
//
// PageMetaDesc Property
//
// Represents the meta description.
//
//*********************************************************************
public string PageMetaDesc {
get { return _pageMetaDesc; }
}
//*********************************************************************
//
// PageMetaKeys Property
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -