App_Code/Controls/SectionControlBaseClass.cs
(开头部分) 3KB这里只显示每个文件的开头 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.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace MyWebPagesStarterKit.Controls
{
public abstract class SectionControlBaseClass : UserControl
{
/// <summary>
/// Indicates whether a section control
/// </summary>
public abstract bool HasAdminView
{
get;
}
public abstract string InfoUrl
{
get;
}
public abstract ISection Section
{
set;
get;
}
public ViewMode ViewMode
{
get
{
object o = ViewState["ViewMode"];
if (o != null)
return (ViewMode)o;
else
return ViewMode.Readonly;
}
set
{
ViewState["ViewMode"] = value;
}
}
# region Section Rss Methods
public bool RssCapable(Type t)
{
return (typeof(ISidebarObject).IsAssignableFrom(t));
}
/// <summary>
/// Renders an RSS button to display at the end of the control
后面还有 41 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
