App_Code/SearchResult.cs
(开头部分) 4KB这里只显示每个文件的开头 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.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text.RegularExpressions;
namespace MyWebPagesStarterKit
{
/// <summary>
/// This class is used for the search-functionality. A search returns a List of SearchResults
/// </summary>
public class SearchResult
{
private string _url;
private string _title;
private string _excerpt;
/// <summary>
/// Creates a new SearchResult with the given parameters
/// </summary>
/// <param name="url">Url of the found page/section</param>
/// <param name="title">Title of the found page/section</param>
/// <param name="excerpt">Excerpt of the found text</param>
public SearchResult(string url, string title, string excerpt)
{
_url = url;
_title = title;
_excerpt = excerpt;
}
/// <summary>
/// Url of the found page/section
/// </summary>
public string Url
{
get { return _url; }
}
/// <summary>
/// Title of the found page/section
/// </summary>
public string Title
{
get { return _title; }
}
后面还有 68 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
