Share via


Guid Members

The following tables list the members exposed by the Guid type.

Public Constructors

Name Description
Public Method Guid Overloaded. Initializes a new instance of the Guid class.

Public Fields

Name Description
Public Field Static Empty A read-only instance of the Guid class whose value is guaranteed to be all zeroes.

Public Methods

Name Description
Public Method CompareTo Compares this instance to a specified object and returns an indication of their relative values.
Public Method Equals Overloaded. Returns a value indicating whether this instance and a specified Guid object represent the same value.
Public Method Equals (Inherited from ValueType.)
Public Method GetHashCode Returns the hash code for this instance.
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Static NewGuid Initializes a new instance of the Guid class.
Public Method Static NewGuid Initializes a new instance of the Guid class.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToByteArray Returns a 16-element byte array that contains the value of this instance.
Public Method ToString Returns a String representation of the value of this instance in registry format.

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

Guid Structure
System Namespace