System::Guid class

Guid class

Represents a Globally Unique IDentifier This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

class Guid

Methods

MethodDescription
CompareTo(const Guid&) constPerforms arithmetic comparison of the GUIDs represented by the current and specified objects.
Equals(const Guid&) constDetermines if the GUIDs represented by the current and specified objects are equal.
GetHashCode() constReturns a hash code for the current object.
Guid()Constructs an object that represents a GUID consisting of all zeroes.
Guid(const ArrayPtr<uint8_t>&)Constructs an object that represents a GUID specified as an array of unsigned 8-bit integer values.
Guid(const System::Details::ArrayView<uint8_t>&)Constructs an object that represents a GUID specified as an array view of unsigned 8-bit integer values.
Guid(const String&)Constructs an object that represents a GUID specified as a string.
Guid(int32_t, int16_t, int16_t, const ArrayPtr<uint8_t>&)Constructs an instance of Guid class from the specified GUID components.
Guid(int32_t, int16_t, int16_t, const System::Details::ArrayView<uint8_t>&)Constructs an instance of Guid class from the specified GUID components.
Guid(int32_t, int16_t, int16_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)Constructs an instance of Guid class from the specified unsigned integers and bytes.
Guid(uint32_t, uint16_t, uint16_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)Constructs an instance of Guid class from the specified unsigned integers and bytes.
Guid(const Guid&)Constructs an object that represents the same GUID as the specified object.
static NewGuid()Generates a new GUID and returns a Guid object that represents it.
operator!=(const Guid&) constDetermines if the GUIDs represented by the current and specified objects are not equal.
operator=(const Guid&)Assigns to the current object the GUID value represented by the specified Guid object.
operator==(const Guid&) constDetermines if the GUIDs represented by the current and specified objects are equal.
static Parse(const String&)Converts the specified string representation of a GUID into equivalent Guid object.
ToByteArray() constConverts the GUID represented by the current object into array of bytes.
ToString() constConverts the GUID represented by the current object to its string representation.
ToString(const String&) constConverts the GUID represented by the current object to its string representation using the specified string format.
ToString(const String&, const SharedPtr<Globalization::CultureInfo>&) constConverts the GUID represented by the current object to its string representation using the specified string format and Culture.
static TryParse(const String&, Guid&)Tries to convert the specified string into Guid object.
~Guid()Destructor.

Fields

FieldDescription
static EmptyRepresents a GUID that has a value of 0.

See Also