BlogEngine.Core/SavedEventArgs.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Text;

namespace BlogEngine.Core
{
  /// <summary>
  /// 
  /// </summary>
  public class SavedEventArgs : EventArgs
  {

    /// <summary>
    /// Initializes a new instance of the <see cref="SavedEventArgs"/> class.
    /// </summary>
    /// <param name="action">The action.</param>
    public SavedEventArgs(SaveAction action)
    {
      Action = action;
    }

    private SaveAction _Action;
    /// <summary>
    /// Gets or sets the action that occured when the object was saved.
    /// </summary>
    public SaveAction Action
    {
      get { return _Action; }
      set { _Action = value; }
    }

  }

  /// <summary>
  /// The action performed by the save event.
  /// </summary>
  public enum SaveAction
  {
    /// <summary>
    /// Default. Nothing happened.
    /// </summary>
    None,
    /// <summary>
    /// It's a new object that has been inserted.
    /// </summary>
    Insert,
    /// <summary>
    /// It's an old object that has been updated.
    /// </summary>
    Update,
    /// <summary>
    /// The object was deleted.
    /// </summary>
    Delete
  }
}

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

AI 解读 AI

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

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