IndexAnnotation.IsCompatibleWith(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若此註解與給定註解不衝突,且可用該 MergeWith(Object) 方法將兩者結合,則返回為真。
public virtual System.Data.Entity.Infrastructure.Annotations.CompatibilityResult IsCompatibleWith(object other);
abstract member IsCompatibleWith : obj -> System.Data.Entity.Infrastructure.Annotations.CompatibilityResult
override this.IsCompatibleWith : obj -> System.Data.Entity.Infrastructure.Annotations.CompatibilityResult
Public Overridable Function IsCompatibleWith (other As Object) As CompatibilityResult
參數
- other
- Object
用註解比較。
傳回
一個相容結果,表示此註解是否與其他標註相容。
實作
備註
每個索引註解最多包含一個 IndexAttribute 帶有名稱的註解。 若每個帶有特定名稱的 IndexAttribute 只包含在其中一個註解中,或兩個標註都包含包含該名稱的 IndexAttribute,則兩個註解被視為相容。