Share via


EntityKey.Equals 方法 (EntityKey)

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 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

参数

返回值

类型:System.Boolean
如果此实例与给定的键相等,则为 true;否则为 false。

Implements

IEquatable<T>.Equals(T)

请参阅

参考

EntityKey 类

Equals 重载

System.Data.Entity.Core 命名空间