Compartilhar via


Thread.GetHashCode Método

Definição

Retorna um código hash para o thread atual.

public:
 override int GetHashCode();
public override int GetHashCode();
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetHashCode();
override this.GetHashCode : unit -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

Retornos

Um valor de código hash inteiro.

Atributos

Comentários

O código hash não tem a garantia de ser exclusivo. Use a ManagedThreadId propriedade se precisar de um identificador exclusivo para um thread gerenciado.

Aplica-se a