📄 pageinfo.cs
字号:
namespace ASPNET.StarterKit.Communities {
using System;
using System.Data;
using System.Data.SqlClient;
//*********************************************************************
//
// PageInfo Class
//
// The PageInfo class represents all the information about the
// page being requested regardless of whether the page is
// a named page, the default section page, or a content page.
// This class is used in the CommunityDefault class to add all
// the standard page elements to each page.
//
//*********************************************************************
public class PageInfo {
int _id;
string _name;
int _parentID;
int _type;
string _title = String.Empty;
string _description;
string _metaDesc;
string _metaKeys;
string _content = String.Empty;
//*********************************************************************
//
// PageInfo Constructor
//
// Initializes the PageInfo class by assigning values to
// its properties.
//
//*********************************************************************
public PageInfo
(
int id,
string name,
int parentID,
int type,
string title,
string description,
string metaDesc,
string metaKeys,
string content
) {
_id = id;
_name = name;
_parentID = parentID;
_type = type;
_title = title;
_description = description;
_metaDesc = metaDesc;
_metaKeys = metaKeys;
_content = content;
}
//*********************************************************************
//
// ID Property
//
// Returns the page ID.
//
//*********************************************************************
public int ID {
get { return _id; }
}
//*********************************************************************
//
// Name Property
//
// Returns the page name.
//
//*********************************************************************
public string Name {
get { return _name; }
}
//*********************************************************************
//
// ParentID Property
//
// Returns the page parent ID.
//
//*********************************************************************
public int ParentID {
get { return _parentID; }
}
//*********************************************************************
//
// Type Property
//
// Returns the page type.
//
//*********************************************************************
public int Type {
get { return _type; }
}
//*********************************************************************
//
// Title Property
//
// Returns the page Title.
//
//*********************************************************************
public string Title {
get {
return _title;
}
}
//*********************************************************************
//
// Description Property
//
// Returns the page description.
//
//*********************************************************************
public string Description {
get { return _description; }
}
//*********************************************************************
//
// MetaDesc Property
//
// Returns the page Meta Description.
//
//*********************************************************************
public string MetaDesc {
get { return _metaDesc; }
}
//*********************************************************************
//
// MetaKeys Property
//
// Returns the page meta keys.
//
//*********************************************************************
public string MetaKeys {
get { return _metaKeys; }
}
//*********************************************************************
//
// Content Property
//
// Returns the page Content.
// For example: Article, Photo, etc.
//
//*********************************************************************
public string Content {
get { return _content; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -