Edytuj

Udostępnij za pośrednictwem


DynamicValidatorEventArgs(Exception, DynamicDataSourceOperation) Constructor

Definition

Initializes a new instance of the DynamicValidatorEventArgs class, using the exception that occurred and the data source operation that caused the exception.

public:
 DynamicValidatorEventArgs(Exception ^ exception, System::Web::DynamicData::DynamicDataSourceOperation operation);
public DynamicValidatorEventArgs (Exception exception, System.Web.DynamicData.DynamicDataSourceOperation operation);
new System.Web.DynamicData.DynamicValidatorEventArgs : Exception * System.Web.DynamicData.DynamicDataSourceOperation -> System.Web.DynamicData.DynamicValidatorEventArgs
Public Sub New (exception As Exception, operation As DynamicDataSourceOperation)

Parameters

exception
Exception

The exception that occurred.

operation
DynamicDataSourceOperation

The data source operation that caused the exception.

Remarks

ASP.NET Dynamic Data provides data source operations that can be performed by a data source object. These operations include Delete, Insert, Select and Update and ContextCreate. If an exception occurs during a data source operation, the data source operation that caused the exception and the exception that occurred are represented by Operation and Exception respectively.

This constructor initializes a new instance of the DynamicValidatorEventArgs class using these properties.

Applies to