Class DataSourceStatusEventArgs
Provides data for the Selected, Inserted, Updated, and Deleted events of the GenericDataSource<TObject, TCollection, TKey> control.
Inheritance
Inherited Members
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class DataSourceStatusEventArgs : EventArgs
Constructors
DataSourceStatusEventArgs(IDictionary)
Initializes a new instance of the DataSourceStatusEventArgs class using the specified output parameters.
Declaration
public DataSourceStatusEventArgs(IDictionary outputParameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | outputParameters | An System.Collections.IDictionary of name/value pairs of parameter objects. |
DataSourceStatusEventArgs(IDictionary, Exception)
Initializes a new instance of the DataSourceStatusEventArgs class using the specified output parameters and exception.
Declaration
public DataSourceStatusEventArgs(IDictionary outputParameters, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | outputParameters | An System.Collections.IDictionary of name/value pairs of parameter objects. |
System.Exception | exception | An System.Exception that wraps any internal exceptions thrown during the method call. |
Properties
AffectedRows
Gets or sets the number of rows that are affected by the data operation.
Declaration
public int AffectedRows { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of rows affected by the data operation. |
Exception
Gets a wrapper for any exceptions that are thrown by the method that is called by the GenericDataSource<TObject, TCollection, TKey> control during a data operation.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception | An System.Exception that wraps any exceptions thrown by the business object in its System.Exception.InnerException. |
ExceptionHandled
Gets or sets a value indicating whether an exception that was thrown by the business object has been handled.
Declaration
public bool ExceptionHandled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if an exception thrown by the business object has been handled and should not be thrown by the GenericDataSource<TObject, TCollection, TKey>; otherwise, false. |
OutputParameters
Gets a collection that contains business object method parameters and their values.
Declaration
public IDictionary OutputParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.IDictionary | An System.Collections.IDictionary of name/value pairs that represent the business object method parameters and their corresponding values. |