WarningConfigurationBuilderExtensions.Throw(WarningsConfigurationBuilder, RelationalEventId[]) WarningConfigurationBuilderExtensions.Throw(WarningsConfigurationBuilder, RelationalEventId[]) Method

Definition

Causes an exception to be thrown when the specified relational database warnings are generated.

public static WarningsConfigurationBuilder Throw(this WarningsConfigurationBuilder warningsConfigurationBuilder, params RelationalEventId[] relationalEventIds)
<ExtensionAttribute>
Public Shared Function Throw(warningsConfigurationBuilder As WarningsConfigurationBuilder, ParamArray relationalEventIds As RelationalEventId()) As WarningsConfigurationBuilder

Parameters

warningsConfigurationBuilder
WarningsConfigurationBuilder WarningsConfigurationBuilder

The builder being used to configure warnings.

relationalEventIds
RelationalEventId[] RelationalEventId()

The RelationalEventId(s) for the warnings.

Returns

The same builder instance so that multiple calls can be chained.