Linguaggio

ContractHelper Classe

Definizione

Attenzione

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

Fornisce metodi utilizzati dal rewriter binario per gestire gli errori del contratto.

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
Ereditarietà
ContractHelper
Attributi

Metodi

Nome Descrizione
RaiseContractFailedEvent(ContractFailureKind, String, String, Exception)
Obsoleti.

Usato dal rewriter binario per attivare il comportamento di errore predefinito.

TriggerFailure(ContractFailureKind, String, String, String, Exception)
Obsoleti.

Attiva il comportamento di errore predefinito.

Si applica a