Share via


CommandAccessor<TResult>.GuardAsyncAllowed Method

Checks if the current Database object supports asynchronous operations, and throws InvalidOperationException if not.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
Protected Sub GuardAsyncAllowed
protected void GuardAsyncAllowed()
protected:
void GuardAsyncAllowed()
protected function GuardAsyncAllowed()

Exceptions

Exception Condition
System.InvalidOperationException The database does not support asynchronous operations.

See Also

CommandAccessor<TResult> Class

Microsoft.Practices.EnterpriseLibrary.Data Namespace