Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / EventMetricSample Class / GetHashCode Method

In This Topic
    GetHashCode Method (EventMetricSample)
    In This Topic
    Serves as the default hash function. Provides a representative hash code for objects of this type to spread out distribution in hash tables.
    Syntax
    'Declaration
     
    
    Public Overrides Function GetHashCode() As Integer
    public override int GetHashCode()

    Return Value

    A hash code for the current object. An int representing the hash code calculated for the contents of this object.
    Remarks
    Objects which consider themselves to be Equal (a.Equals(b) returns true) are expected to have the same hash code. Objects which are not Equal may have the same hash code, but minimizing such overlaps helps with efficient operation of hash tables.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also

    Reference

    EventMetricSample Class
    EventMetricSample Members
    Base Implementation in GetHashCode