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)
古い.

既定のエラー動作をトリガーします。

適用対象