ContractVerificationAttribute(Boolean) 构造函数

定义

初始化 ContractVerificationAttribute 类的新实例。

public:
 ContractVerificationAttribute(bool value);
public ContractVerificationAttribute (bool value);
new System.Diagnostics.Contracts.ContractVerificationAttribute : bool -> System.Diagnostics.Contracts.ContractVerificationAttribute
Public Sub New (value As Boolean)

参数

value
Boolean

若为 true,则需要验证;否则为 false

适用于