Editare

Partajați prin


LinqDataSourceStatusEventArgs Constructors

Definition

Initializes a new instance of the LinqDataSourceStatusEventArgs class.

Overloads

LinqDataSourceStatusEventArgs(Exception)

Initializes a new instance of the LinqDataSourceStatusEventArgs class by using an exception that occurred as a result of the data operation.

LinqDataSourceStatusEventArgs(Object)

Initializes a new instance of the LinqDataSourceStatusEventArgs class by using an object that contains the data from the data operation.

LinqDataSourceStatusEventArgs(Object, Int32)

Initializes a new instance of the LinqDataSourceStatusEventArgs class with an object that contains the data from the data operation and the number of rows returned.

LinqDataSourceStatusEventArgs(Exception)

Initializes a new instance of the LinqDataSourceStatusEventArgs class by using an exception that occurred as a result of the data operation.

public:
 LinqDataSourceStatusEventArgs(Exception ^ exception);
public LinqDataSourceStatusEventArgs (Exception exception);
new System.Web.UI.WebControls.LinqDataSourceStatusEventArgs : Exception -> System.Web.UI.WebControls.LinqDataSourceStatusEventArgs
Public Sub New (exception As Exception)

Parameters

exception
Exception

The error that occurred during the data operation.

Remarks

This constructor is used when an exception is thrown during the data operation. The Result property is automatically set to null.

Applies to

LinqDataSourceStatusEventArgs(Object)

Initializes a new instance of the LinqDataSourceStatusEventArgs class by using an object that contains the data from the data operation.

public:
 LinqDataSourceStatusEventArgs(System::Object ^ result);
public LinqDataSourceStatusEventArgs (object result);
new System.Web.UI.WebControls.LinqDataSourceStatusEventArgs : obj -> System.Web.UI.WebControls.LinqDataSourceStatusEventArgs
Public Sub New (result As Object)

Parameters

result
Object

An object that contains the data that results from a data operation.

Remarks

This constructor is used when the data operation has finished without an error. The result parameter contains an object that represents the result of the data operation. The Exception property is automatically set to null.

Applies to

LinqDataSourceStatusEventArgs(Object, Int32)

Initializes a new instance of the LinqDataSourceStatusEventArgs class with an object that contains the data from the data operation and the number of rows returned.

public:
 LinqDataSourceStatusEventArgs(System::Object ^ result, int totalRowCount);
public LinqDataSourceStatusEventArgs (object result, int totalRowCount);
new System.Web.UI.WebControls.LinqDataSourceStatusEventArgs : obj * int -> System.Web.UI.WebControls.LinqDataSourceStatusEventArgs
Public Sub New (result As Object, totalRowCount As Integer)

Parameters

result
Object

An object that contains the data that results from a data operation.

totalRowCount
Int32

The number of rows that were returned from a data retrieval operation.

Applies to