共用方式為


CompatibilityResult.Implicit(CompatibilityResult to Boolean) 運算子

定義

隱含轉換成 bool,以允許直接在檢查中使用結果物件。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2225:OperatorOverloadsHaveNamedAlternates")]
public static implicit operator bool (System.Data.Entity.Infrastructure.Annotations.CompatibilityResult result);
static member op_Implicit : System.Data.Entity.Infrastructure.Annotations.CompatibilityResult -> bool
Public Shared Widening Operator CType (result As CompatibilityResult) As Boolean

參數

result
CompatibilityResult

要轉換的物件。

傳回

如果結果相容,則為 True;否則為 false。

屬性

適用於