ContractHelper Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides methods that the binary rewriter uses to handle contract failures.
Assembly: mscorlib (in mscorlib.dll)
The ContractHelper type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | RaiseContractFailedEvent | Used by the binary rewriter to activate the default failure behavior. |
![]() ![]() | TriggerFailure | Triggers the default failure behavior. |
Show:

