Back to Devexpress

ServerExceptionThrownEventArgs.Action Property

xpo-devexpress-dot-xpo-dot-serverexceptionthrowneventargs.md

latest1.9 KB
Original Source

ServerExceptionThrownEventArgs.Action Property

Gets or sets how the data server exception is to be handled in Server Mode.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public ServerExceptionThrownAction Action { get; set; }
vb
Public Property Action As ServerExceptionThrownAction

Property Value

TypeDescription
ServerExceptionThrownAction

A ServerExceptionThrownAction value indicating how the data server exception is to be handled.

|

Available values:

NameDescription
Skip

An exception is consumed.

| | Rethrow |

An exception is rethrown.

|

Remarks

The XPServerCollectionSource.ServerExceptionThrown event is raised when a data server throws an exception in server mode. Use the Action property to specify how the exception is handled. To get the exception’s details, use the ServerExceptionThrownEventArgs.Exception property.

See Also

ServerExceptionThrownEventArgs Class

ServerExceptionThrownEventArgs Members

DevExpress.Xpo Namespace