Click or drag to resize
Guid Structure
Represents a globally unique identifier (GUID).

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Guid : IFormattable, IComparable, 
	IComparable<Guid>, IEquatable<Guid>

The Guid type exposes the following members.

Methods
  NameDescription
Public methodEquals(Guid)
Returns a value indicating whether this instance and a specified Guid object represent the same value.
Public methodEquals(Object)
Returns a value that indicates whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberNewGuid
Initializes a new instance of the Guid structure.
Public methodStatic memberParse
Converts the string representation of a GUID to the equivalent Guid structure.
Public methodToString
Returns a string representation of the value of this instance in registry format.
(Overrides ValueTypeToString.)
Public methodToString(String)
Returns a string representation of the value of this Guid instance, according to the provided format specifier.
Public methodToString(String, IFormatProvider)
Returns a string representation of the value of this instance of the Guid structure, according to the provided format specifier and culture-specific format information.
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
A read-only instance of the Guid structure whose value is all zeros.
Top
See Also