Raises an exception if the operation has failed or has been canceled.

Namespace:  Rebex
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Protected Sub RaiseExceptionIfNecessary
C#
protected void RaiseExceptionIfNecessary()

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionThe Cancelled property is true.
System.Reflection..::..TargetInvocationExceptionThe Error property is set.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also