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. More...

Public Member Functions

ASPOSECPP_SHARED_API Guid ()
 Constructs an object that represents a GUID consisting of all zeroes. More...
 
ASPOSECPP_SHARED_API Guid (const ArrayPtr< uint8_t > &b)
 Constructs an object that represents a GUID specified as an array of unsigned 8-bit integer values. More...
 
ASPOSECPP_SHARED_API Guid (const System::Details::ArrayView< uint8_t > &b)
 Constructs an object that represents a GUID specified as an array view of unsigned 8-bit integer values. More...
 
ASPOSECPP_SHARED_API Guid (const String &g)
 Constructs an object that represents a GUID specified as a string. More...
 
ASPOSECPP_SHARED_API Guid (int32_t a, int16_t b, int16_t c, const ArrayPtr< uint8_t > &d)
 Constructs an instance of Guid class from the specified GUID components. More...
 
ASPOSECPP_SHARED_API Guid (int32_t a, int16_t b, int16_t c, const System::Details::ArrayView< uint8_t > &d)
 Constructs an instance of Guid class from the specified GUID components. More...
 
ASPOSECPP_SHARED_API Guid (int32_t a, int16_t b, int16_t c, uint8_t d, uint8_t e, uint8_t f, uint8_t g, uint8_t h, uint8_t i, uint8_t j, uint8_t k)
 Constructs an instance of Guid class from the specified unsigned integers and bytes. More...
 
ASPOSECPP_SHARED_API Guid (uint32_t a, uint16_t b, uint16_t c, uint8_t d, uint8_t e, uint8_t f, uint8_t g, uint8_t h, uint8_t i, uint8_t j, uint8_t k)
 Constructs an instance of Guid class from the specified unsigned integers and bytes. More...
 
ASPOSECPP_SHARED_API ~Guid ()
 Destructor. More...
 
ASPOSECPP_SHARED_API Guid (const Guid &guid)
 Constructs an object that represents the same GUID as the specified object. More...
 
ASPOSECPP_SHARED_API Guidoperator= (const Guid &guid)
 Assigns to the current object the GUID value represented by the specified Guid object. More...
 
ASPOSECPP_SHARED_API int CompareTo (const Guid &g) const
 Performs arithmetic comparison of the GUIDs represented by the current and specified objects. More...
 
ASPOSECPP_SHARED_API bool Equals (const Guid &g) const
 Determines if the GUIDs represented by the current and specified objects are equal. More...
 
ASPOSECPP_SHARED_API ArrayPtr< uint8_t > ToByteArray () const
 Converts the GUID represented by the current object into array of bytes. More...
 
ASPOSECPP_SHARED_API String ToString () const
 Converts the GUID represented by the current object to its string representation. More...
 
ASPOSECPP_SHARED_API String ToString (const String &format) const
 Converts the GUID represented by the current object to its string representation using the specified string format. More...
 
ASPOSECPP_SHARED_API String ToString (const String &format, const SharedPtr< Globalization::CultureInfo > &culture) const
 Converts the GUID represented by the current object to its string representation using the specified string format and Culture. More...
 
ASPOSECPP_SHARED_API bool operator!= (const Guid &b) const
 Determines if the GUIDs represented by the current and specified objects are not equal. More...
 
ASPOSECPP_SHARED_API bool operator== (const Guid &b) const
 Determines if the GUIDs represented by the current and specified objects are equal. More...
 
ASPOSECPP_SHARED_API int GetHashCode () const
 Returns a hash code for the current object. More...
 

Static Public Member Functions

static ASPOSECPP_SHARED_API Guid NewGuid ()
 Generates a new GUID and returns a Guid object that represents it. More...
 
static ASPOSECPP_SHARED_API Guid Parse (const String &input)
 Converts the specified string representation of a GUID into equivalent Guid object. More...
 
static ASPOSECPP_SHARED_API bool TryParse (const String &input, Guid &g)
 Tries to convert the specified string into Guid object. More...
 

Static Public Attributes

static Guid ASPOSECPP_SHARED_API Empty
 Represents a GUID that has a value of 0. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Guid() [1/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( )

Constructs an object that represents a GUID consisting of all zeroes.

◆ Guid() [2/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( const ArrayPtr< uint8_t > &  b)

Constructs an object that represents a GUID specified as an array of unsigned 8-bit integer values.

Parameters
bA byte-array containing separate bytes of the GUID

◆ Guid() [3/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( const System::Details::ArrayView< uint8_t > &  b)

Constructs an object that represents a GUID specified as an array view of unsigned 8-bit integer values.

Parameters
bA byte-array containing separate bytes of the GUID

◆ Guid() [4/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( const String g)

Constructs an object that represents a GUID specified as a string.

Parameters
gThe string representation of a GUID to be represented by the object being constructed

◆ Guid() [5/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( int32_t  a,
int16_t  b,
int16_t  c,
const ArrayPtr< uint8_t > &  d 
)

Constructs an instance of Guid class from the specified GUID components.

Parameters
aBits 0-31 of the GUID
bBits 32-47 of the GUID
cBits 48-63 of the GUID
dA byte array containing bits 64-127 of the GUID

◆ Guid() [6/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( int32_t  a,
int16_t  b,
int16_t  c,
const System::Details::ArrayView< uint8_t > &  d 
)

Constructs an instance of Guid class from the specified GUID components.

Parameters
aBits 0-31 of the GUID
bBits 32-47 of the GUID
cBits 48-63 of the GUID
dA byte array view containing bits 64-127 of the GUID

◆ Guid() [7/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( int32_t  a,
int16_t  b,
int16_t  c,
uint8_t  d,
uint8_t  e,
uint8_t  f,
uint8_t  g,
uint8_t  h,
uint8_t  i,
uint8_t  j,
uint8_t  k 
)

Constructs an instance of Guid class from the specified unsigned integers and bytes.

Parameters
aBits 0-31 of the GUID
bBits 32-47 of the GUID
cBits 48-63 of the GUID
dBits 64-71 of the GUID
eBits 72-79 of the GUID
fBits 80-87 of the GUID
gBits 88-95 of the GUID
hBits 96-103 of the GUID
iBits 104-111 of the GUID
jBits 112-119 of the GUID
kBits 120-127 of the GUID

◆ Guid() [8/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( uint32_t  a,
uint16_t  b,
uint16_t  c,
uint8_t  d,
uint8_t  e,
uint8_t  f,
uint8_t  g,
uint8_t  h,
uint8_t  i,
uint8_t  j,
uint8_t  k 
)

Constructs an instance of Guid class from the specified unsigned integers and bytes.

Parameters
aBits 0-31 of the GUID
bBits 32-47 of the GUID
cBits 48-63 of the GUID
dBits 64-71 of the GUID
eBits 72-79 of the GUID
fBits 80-87 of the GUID
gBits 88-95 of the GUID
hBits 96-103 of the GUID
iBits 104-111 of the GUID
jBits 112-119 of the GUID
kBits 120-127 of the GUID

◆ ~Guid()

ASPOSECPP_SHARED_API System::Guid::~Guid ( )

Destructor.

◆ Guid() [9/9]

ASPOSECPP_SHARED_API System::Guid::Guid ( const Guid guid)

Constructs an object that represents the same GUID as the specified object.

Parameters
guidThe Guid object to copy the GUID value from

Member Function Documentation

◆ CompareTo()

ASPOSECPP_SHARED_API int System::Guid::CompareTo ( const Guid g) const

Performs arithmetic comparison of the GUIDs represented by the current and specified objects.

Parameters
gThe comparand
Returns
-1 if the GUID represented by the current object is less than the GUID represented by g; 0 if the GUIDs are equal; 1 if the GUID represented by the current object is greater than the GUID represented by g

◆ Equals()

ASPOSECPP_SHARED_API bool System::Guid::Equals ( const Guid g) const

Determines if the GUIDs represented by the current and specified objects are equal.

Parameters
gThe comparand
Returns
True if the GUIDs represented by the current and the specified objects are equal, otherwise - false

◆ GetHashCode()

ASPOSECPP_SHARED_API int System::Guid::GetHashCode ( ) const

Returns a hash code for the current object.

◆ NewGuid()

static ASPOSECPP_SHARED_API Guid System::Guid::NewGuid ( )
static

Generates a new GUID and returns a Guid object that represents it.

◆ operator!=()

ASPOSECPP_SHARED_API bool System::Guid::operator!= ( const Guid b) const

Determines if the GUIDs represented by the current and specified objects are not equal.

Parameters
bThe comparand
Returns
True if the GUIDs represented by the current and the specified objects are not equal, otherwise - false

◆ operator=()

ASPOSECPP_SHARED_API Guid& System::Guid::operator= ( const Guid guid)

Assigns to the current object the GUID value represented by the specified Guid object.

Parameters
guidThe Guid object to copy the GUID value from
Returns
A reference to the self

◆ operator==()

ASPOSECPP_SHARED_API bool System::Guid::operator== ( const Guid b) const

Determines if the GUIDs represented by the current and specified objects are equal.

Parameters
bThe comparand
Returns
True if the GUIDs represented by the current and the specified objects are equal, otherwise - false

◆ Parse()

static ASPOSECPP_SHARED_API Guid System::Guid::Parse ( const String input)
static

Converts the specified string representation of a GUID into equivalent Guid object.

Parameters
inputThe string containing the string representation of GUID
Returns
A Guid object representing a GUID equivalent to that represented by input

◆ ToByteArray()

ASPOSECPP_SHARED_API ArrayPtr<uint8_t> System::Guid::ToByteArray ( ) const

Converts the GUID represented by the current object into array of bytes.

Returns
A byte array containing bytes constituting the GUID represented by the current object

◆ ToString() [1/3]

ASPOSECPP_SHARED_API String System::Guid::ToString ( ) const

Converts the GUID represented by the current object to its string representation.

◆ ToString() [2/3]

ASPOSECPP_SHARED_API String System::Guid::ToString ( const String format) const

Converts the GUID represented by the current object to its string representation using the specified string format.

Parameters
formatThe format to use
Returns
The string representation of the GUID value represented by the current object

◆ ToString() [3/3]

ASPOSECPP_SHARED_API String System::Guid::ToString ( const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
) const

Converts the GUID represented by the current object to its string representation using the specified string format and Culture.

Parameters
formatThe format to use
cultureCulture to use
Returns
The string representation of the GUID value represented by the current object

◆ TryParse()

static ASPOSECPP_SHARED_API bool System::Guid::TryParse ( const String input,
Guid g 
)
static

Tries to convert the specified string into Guid object.

Parameters
inputThe string to convert
gOutput Guid object, if successful.
Returns
True, if input string represents valid Guid, otherwise false.

Member Data Documentation

◆ Empty

Guid ASPOSECPP_SHARED_API System::Guid::Empty
static

Represents a GUID that has a value of 0.