App_Code/WebSite.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//===============================================================================================
//
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
//
//===============================================================================================
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.IO;
namespace MyWebPagesStarterKit
{
/// <summary>
/// This class is designed as a singleton, there can only be one instance of it. It contains website's core settings like language and culture or title, etc.
/// </summary>
[Serializable]
public class WebSite : Persistable<WebSite.WebSiteData>
{
private WebSite() : base() { }
/// <summary>
/// Guid of the current homepage
/// </summary>
public string HomepageId
{
get { return _data.HomepageId; }
set { _data.HomepageId = value; }
}
/// <summary>
/// The name of the currently active theme (in folder App_Themes)
/// </summary>
public string Theme
{
get { return _data.Theme; }
set { _data.Theme = value; }
}
/// <summary>
/// The current locale in the format "<languagecode2>-<country/regioncode2>", where <languagecode2> is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166.
/// </summary>
public string LocaleID
{
get { return _data.Language; }
set
{
_data.Language = value;
}
}
/// <summary>
/// Name or IP-Address of the smtp-server that will be used for sending mails (contactform)
/// </summary>
public string SmtpServer
{
后面还有 317 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
