Condividi tramite


Metodo EntityKey.GetHashCode

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Restituisce un codice hash basato su valori per consentire l'utilizzo di EntityKey nelle tabelle hash.

Spazio dei nomi:  System.Data.Entity.Core
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Overrides Function GetHashCode As Integer
'Utilizzo
Dim instance As EntityKey 
Dim returnValue As Integer 

returnValue = instance.GetHashCode()
public override int GetHashCode()
public:
virtual int GetHashCode() override
abstract GetHashCode : unit -> int  
override GetHashCode : unit -> int
public override function GetHashCode() : int

Valore restituito

Tipo: System.Int32
Valore hash di EntityKey.

Vedere anche

Riferimento

EntityKey Classe

Spazio dei nomi System.Data.Entity.Core