CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
SavedEventArgs.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="SavedEventArgs.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Event arguments containing a reference</summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla.Core
11{
17 public class SavedEventArgs : EventArgs
18 {
19 private object _newObject;
24 public object NewObject
25 {
26 get { return _newObject; }
27 }
28
29 private Exception _error;
33 public Exception Error
34 {
35 get
36 {
37 return _error;
38 }
39 }
40
41 private object _userState;
45 public object UserState
46 {
47 get { return _userState; }
48 }
49
57 public SavedEventArgs(object newObject)
58 {
59 _newObject = newObject;
60 _error = null;
61 _userState = null;
62 }
63
73 public SavedEventArgs(object newObject, Exception error, object userState)
74 {
75 _newObject = newObject;
76 _error = error;
77 _userState = userState;
78 }
79 }
80}
Event arguments containing a reference to the new object that was returned as a result of the Save() ...
object UserState
Gets the user state object.
SavedEventArgs(object newObject)
Creates an instance of the object.
object NewObject
Gets the object that was returned as a result of the Save() operation.
SavedEventArgs(object newObject, Exception error, object userState)
Creates an instance of the object.
Exception Error
Gets any exception that occurred during the save.