ContractHelper 类

定义

注意

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

提供二进制重写程序用以处理协定失败的方法。

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
继承
ContractHelper
属性

方法

RaiseContractFailedEvent(ContractFailureKind, String, String, Exception)
已过时.

由二进制重写工具用来激活默认失败行为。

TriggerFailure(ContractFailureKind, String, String, String, Exception)
已过时.

触发默认失败行为。

适用于