BlogEngine.Core/ServingEventArgs.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
namespace BlogEngine.Core
{
/// <summary>
/// Used when a post is served to the output stream.
/// </summary>
public class ServingEventArgs : EventArgs
{
/// <summary>
/// Creates a new instance of the class and applies the specified body.
/// </summary>
public ServingEventArgs(string body, ServingLocation location)
{
_Body = body;
_Location = location;
}
private string _Body;
/// <summary>
/// Gets or sets the body of the post. If you change the Body,
/// then that change will be shown on the web page.
/// </summary>
public string Body
{
get { return _Body; }
set { _Body = value; }
}
private ServingLocation _Location;
/// <summary>
/// The location where the serving takes place.
/// </summary>
public ServingLocation Location
{
get { return _Location; }
set { _Location = value; }
}
private bool _Cancel;
/// <summary>
/// Cancels the serving of the content.
/// <remarks>If the serving is cancelled then the item will not be displayed.</remarks>
/// </summary>
public bool Cancel
{
get { return _Cancel; }
set { _Cancel = value; }
}
}
/// <summary>
/// The location where the serving takes place
/// </summary>
public enum ServingLocation
{
后面还有 22 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
