CompatibilityResult(Boolean, String) 构造函数

定义

创建一个新的 CompatibilityResult 实例。

public CompatibilityResult (bool isCompatible, string errorMessage);
new System.Data.Entity.Infrastructure.Annotations.CompatibilityResult : bool * string -> System.Data.Entity.Infrastructure.Annotations.CompatibilityResult
Public Sub New (isCompatible As Boolean, errorMessage As String)

参数

isCompatible
Boolean

指示两个测试对象是否兼容。

errorMessage
String

一条错误消息,指示对象不兼容的方式。 如果 isCompatible 为 true,则预期为 null。

适用于