Guid Structure

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a globally unique identifier (GUID).

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

[<Sealed>]
[<SerializableAttribute>]
type Guid =  struct end

The Guid type exposes the following members.

  NameDescription
Public methodGuid(array<Byte>[]()[][])Initializes a new instance of the Guid structure by using the specified array of bytes.
Public methodGuid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)Initializes a new instance of the Guid structure by using the specified integers and bytes.
Public methodGuid(UInt32, UInt16, UInt16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)Initializes a new instance of the Guid structure by using the specified unsigned integers and bytes.
Top

  NameDescription
Public methodCompareToCompares this instance to a specified object and returns an indication of their relative values.
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object. (Overrides ValueType..::..Equals(Object).)
Public methodGetHashCodeReturns the hash code for this instance. (Overrides Object..::..GetHashCode()()()().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberNewGuidInitializes a new instance of the Guid structure.
Public methodToByteArrayReturns a 16-element byte array that contains the value of this instance.
Public methodToStringReturns a string representation of the value of this instance in registry format. (Overrides Object..::..ToString()()()().)
Top

  NameDescription
Public fieldStatic memberEmptyA read-only instance of the Guid structure whose value is all zeros.
Top

A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: