System.Guid Members

The members of System.Guid are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Initializes a new instance of the Guid structure by using the specified array of bytes.

Initializes a new instance of the Guid structure by using the value represented by the specified string.

Initializes a new instance of the Guid structure by using the specified integers and bytes.

Initializes a new instance of the Guid structure by using the specified unsigned integers and bytes.

Initializes a new instance of the Guid structure by using the specified integers and byte array.

Public Fields

static readonly
EmptyGuid (00000000-0000-0000-0000-000000000000).

A read-only instance of the Guid structure whose value is all zeros.

Public Methods

CompareTo(Guid) : int

Compares this instance to a specified Guid object and returns an indication of their relative values.

CompareTo(object) : int

Compares this instance to a specified object and returns an indication of their relative values.

Equals(Guid) : bool

Returns a value indicating whether this instance and a specified Guid object represent the same value.

override
Equals(object) : bool

Returns a value that indicates whether this instance is equal to a specified object.

override
GetHashCode() : int

Returns the hash code for this instance.

static
NewGuid() : Guid

Initializes a new instance of the Guid structure.

static
Parse(string) : Guid

Converts the string representation of a GUID to the equivalent Guid structure.

static
ParseExact(string, string) : Guid

Converts the string representation of a GUID to the equivalent Guid structure, provided that the string is in the specified format.

ToByteArray() : byte[]

Returns a 16-element byte array that contains the value of this instance.

override
ToString() : string

Returns a string representation of the value of this instance in registry format.

ToString(string) : string

Returns a string representation of the value of this Guid instance, according to the provided format specifier.

ToString(string, IFormatProvider) : string

Returns a string representation of the value of this instance of the Guid class, according to the provided format specifier and culture-specific format information.

static
TryParse(string, out Guid) : bool
Documentation for this section has not yet been entered.
static
TryParseExact(string, string, out Guid) : bool
Documentation for this section has not yet been entered.

Public Operators

static
Equality(Guid, Guid)

Indicates whether the values of two specified Guid objects are equal.

static
Inequality(Guid, Guid)

Indicates whether the values of two specified Guid objects are not equal.