EntityKey.Equals 方法 (EntityKey)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
表示一個值,指出此執行個體是否與指定的索引鍵相等。
命名空間: System.Data.Entity.Core
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Function Equals ( _
other As EntityKey _
) As Boolean
'用途
Dim instance As EntityKey
Dim other As EntityKey
Dim returnValue As Boolean
returnValue = instance.Equals(other)
public bool Equals(
EntityKey other
)
public:
virtual bool Equals(
EntityKey^ other
) sealed
abstract Equals :
other:EntityKey -> bool
override Equals :
other:EntityKey -> bool
public final function Equals(
other : EntityKey
) : boolean
參數
- other
類型:System.Data.Entity.Core.EntityKey
要和此執行個體相比較的索引鍵。
傳回值
類型:System.Boolean
如果此執行個體等於指定的索引鍵則為 true,否則為 false。