Edit

Share via


HttpWebRequest.GetHashCode Method

Definition

Returns a hash value for a WebRequest instance.

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

Returns

An integer hash value.

Remarks

Caution

WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete, and you shouldn't use them for new development. Use HttpClient instead.

The GetHashCode method returns a hash code of the web request. This value can be used as a key in hash tables.

Applies to