📄 triggererroreventobject.cs
字号:
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.Mobile.Data
{
/// <summary>
/// Event arguments passed to on Trigger events. This allows for
/// notification of changes to a table.
/// </summary>
public class TriggerErrorEventArgs : EventArgs
{
#region Fields
private Exception _exception;
private EventHandler<TriggerEventArgs> _errorSourceHandler;
#endregion
#region Constructor(s) & Dispose
/// <summary>
/// Builds a read only trigger error event argument object.
/// </summary>
/// <param name="exception">
/// Exception thrown by a trigger subscriber
/// </param>
/// <param name="errorSourceHandler">
/// The event handler that threw the exception
/// </param>
public TriggerErrorEventArgs(EventHandler<TriggerEventArgs> errorSourceHandler,
Exception exception)
{
_errorSourceHandler = errorSourceHandler;
_exception = exception;
}
#endregion
#region Properties
/// <summary>
/// Event handler that threw the exception.
/// </summary>
public EventHandler<TriggerEventArgs> ErrorSourceHandler
{
get
{
return _errorSourceHandler;
}
}
/// <summary>
/// Exception thrown by the subscriber to the trigger event.
/// </summary>
public Exception Exception
{
get
{
return _exception;
}
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -