RTI Connext C# API  6.1.0
Guid Struct Reference

A global unique identifier. More...

Inherits IEquatable< Guid >, and IComparable< Guid >.

Public Member Functions

 Guid (byte[] values)
 Creates a new Guid from an array of 16 bytes. More...
 
int CompareTo (Guid other)
 Compares two objects. More...
 
bool Equals (Guid other)
 Compares two objects for equality. More...
 
override bool Equals (object obj)
 Compares two objects for equality. More...
 
override int GetHashCode ()
 Gets the hash code. More...
 
override string ToString ()
 Converts to string. More...
 
InstanceHandle ToInstanceHandle ()
 Converts to InstanceHandle. More...
 
byte[] ToArray ()
 Converts this GUID to a byte array. More...
 

Static Public Member Functions

static Guid FromArray (byte[] bytes)
 Creates a Guid from the bytes in a 16-byte array More...
 
static Guid FromInstanceHandle (in InstanceHandle instanceHandle)
 Creates a new Guid from an InstanceHandle. More...
 

Properties

static Guid Unknown [get]
 Special object representing an unknown Guid. More...
 
static Guid Auto [get]
 Special object that indicates certain methods that the actual Guid. should be automatically determined. More...
 

Detailed Description

A global unique identifier.

Constructor & Destructor Documentation

◆ Guid()

Guid ( byte[]  values)

Creates a new Guid from an array of 16 bytes.

Member Function Documentation

◆ CompareTo()

int CompareTo ( Guid  other)

Compares two objects.

◆ Equals() [1/2]

bool Equals ( Guid  other)

Compares two objects for equality.

◆ Equals() [2/2]

override bool Equals ( object  obj)

Compares two objects for equality.

◆ FromArray()

static Guid FromArray ( byte[]  bytes)
static

Creates a Guid from the bytes in a 16-byte array

◆ FromInstanceHandle()

static Guid FromInstanceHandle ( in InstanceHandle  instanceHandle)
static

Creates a new Guid from an InstanceHandle.

◆ GetHashCode()

override int GetHashCode ( )

Gets the hash code.

◆ ToArray()

byte [] ToArray ( )

Converts this GUID to a byte array.

◆ ToInstanceHandle()

InstanceHandle ToInstanceHandle ( )

Converts to InstanceHandle.

◆ ToString()

override string ToString ( )

Converts to string.

Property Documentation

◆ Auto

Guid Auto
staticget

Special object that indicates certain methods that the actual Guid. should be automatically determined.

The full documentation is available in the C API: DDS_GUID_AUTO

◆ Unknown

Guid Unknown
staticget

Special object representing an unknown Guid.

The full documentation is available in the C API: DDS_GUID_UNKNOWN