Språk

ContractHelper Klass

Definition

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.

Gäller för