共用方式為


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)
已淘汰.

觸發預設的失敗行為。

適用於