Guid

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
int CompareTo(const Guid&) constPerforms arithmetic comparison of the GUIDs represented by the current and specified objects.
bool Equals(const Guid&) constDetermines if the GUIDs represented by the current and specified objects are equal.
int 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 Guid NewGuid()Generates a new GUID and returns a Guid object that represents it.
bool operator!=(const Guid&) constDetermines if the GUIDs represented by the current and specified objects are not equal.
Guid& operator=(const Guid&)Assigns to the current object the GUID value represented by the specified Guid object.
bool operator==(const Guid&) constDetermines if the GUIDs represented by the current and specified objects are equal.
static Guid Parse(const String&)Converts the specified string representation of a GUID into equivalent Guid object.
ArrayPtr<uint8_t> ToByteArray() constConverts the GUID represented by the current object into array of bytes.
String ToString() constConverts the GUID represented by the current object to its string representation.
String ToString(const String&) constConverts the GUID represented by the current object to its string representation using the specified string format.
String 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 bool 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