Język

ContractHelper Klasa

Definicja

Uwaga

Use the ContractHelper class in the System.Runtime.CompilerServices namespace instead.

Udostępnia metody używane przez binarną maszynę do obsługi niepowodzeń kontraktów.

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
Dziedziczenie
ContractHelper
Atrybuty

Metody

Nazwa Opis
RaiseContractFailedEvent(ContractFailureKind, String, String, Exception)
Przestarzałe.

Używany przez maszynę binarną do aktywowania domyślnego zachowania błędu.

TriggerFailure(ContractFailureKind, String, String, String, Exception)
Przestarzałe.

Wyzwala domyślne zachowanie błędu.

Dotyczy