ContractHelper Classe

Definição

Atenção

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

Fornece métodos que o reescritor binário utiliza para lidar com falhas contritárias.

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
Herança
ContractHelper
Atributos

Métodos

Name Description
RaiseContractFailedEvent(ContractFailureKind, String, String, Exception)
Obsoleto.

Usado pelo regravador binário para ativar o comportamento de falha por defeito.

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

Desencadeia o comportamento padrão de falha.

Aplica-se a