App_Code/WebPage.cs

(开头部分) 6KB

这里只显示每个文件的开头 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;
//该源码下载自www.51aspx.com(51aspx.com)

namespace MyWebPagesStarterKit
{
    /// <summary>
    /// This class encapsulates the logic and properties of a single page
    /// </summary>
    [Serializable]
    public class WebPage : Persistable<WebPage.WebPageData>
    {
        private string _pageId;

        /// <summary>
        /// Create a WebPage for a given id
        /// </summary>
        /// <param name="id">Guid of the WebPage to create as string</param>
        public WebPage(string id)
        {
            _pageId = id;
            LoadData();
        }

        /// <summary>
        /// Creates a new empty WebPage and generates a new guid for it
        /// </summary>
        public WebPage() : base()
        {
            _pageId = Guid.NewGuid().ToString();
        }

        /// <summary>
        /// Guid of the WebPage as string
        /// </summary>
        public string PageId
        {
            get { return _pageId; }
        }

        /// <summary>
        /// Text of the navigation-node for this WebPage
        /// </summary>
        public string NavigationName
        {
            get { return _data.NavigationName; }
            set { _data.NavigationName = value; }
        }

        /// <summary>
        /// Flag to make the WebPage visible (if false, the WebPage does not appear in the navigation)
后面还有 160 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。