ContractHelper Klass
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Varning
Use the ContractHelper class in the System.Runtime.CompilerServices namespace instead.
Innehåller metoder som den binära skrivmaskinen använder för att hantera kontraktsfel.
public ref class ContractHelper abstract sealed
public static class ContractHelper
[System.Obsolete("Use the ContractHelper class in the System.Runtime.CompilerServices namespace instead.")]
public static class ContractHelper
type ContractHelper = class
[<System.Obsolete("Use the ContractHelper class in the System.Runtime.CompilerServices namespace instead.")>]
type ContractHelper = class
Public Class ContractHelper
- Arv
-
ContractHelper
- Attribut
Metoder
| Name | Description |
|---|---|
| RaiseContractFailedEvent(ContractFailureKind, String, String, Exception) |
Föråldrad.
Används av den binära skrivmaskinen för att aktivera standardbeteendet för fel. |
| TriggerFailure(ContractFailureKind, String, String, String, Exception) |
Föråldrad.
Utlöser standardbeteendet för fel. |