GlobalObject.GetHashCode Method

Returns the hash code for the current global object.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

‘선언
Public Overrides Function GetHashCode As Integer
‘사용 방법
Dim instance As GlobalObject
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

Return Value

Type: System.Int32
An Int32 that specifies a hash value for the current global object.

Remarks

The generated hash code is composed of two portions:

  • The high-order half is the hash code of the ObjectType property, truncated to two bytes.

  • The low-order half is the hash code of the Name property, truncated to two bytes.

.NET Framework Security

See Also

Reference

GlobalObject Class

GlobalObject Members

Microsoft.VisualStudio.Shell.Design Namespace

Equals

Name

ObjectType