SqlDataSourceStatusEventArgs Constructor (DbCommand, Int32, Exception)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the SqlDataSourceStatusEventArgs class, using the specified output parameters, return value, and number of rows affected by the database operation.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public SqlDataSourceStatusEventArgs(
	DbCommand command,
	int affectedRows,
	Exception exception
)

Parameters

command
Type: System.Data.Common.DbCommand

The DbCommand that represents the database query, command, or stored procedure that is submitted to the database by the SqlDataSource control.

affectedRows
Type: System.Int32

The number of rows affected by the database operation, if applicable.

exception
Type: System.Exception

An Exception thrown by the database operation, if applicable.

.NET Framework
Available since 2.0
Return to top
Show: