Guid

Overview

GUID class to hold and create 16 byte guid data.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Mapped to:
    • UUID  Cooper
    • NSUUID  Toffee, ToffeeV2

 

constructor (not nullable array of Byte)

Create a new guid from an array of byte.

 

constructor(aValue: not nullable array of Byte)

 

Guid(Byte[]! aValue)

 

init(_ aValue: Byte...)

 

Guid(Byte[] aValue)

 

Sub New(aValue As Byte())

Parameters:

  • aValue:

constructor (not nullable array of Byte, Int32) .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

constructor(aValue: not nullable array of Byte; aOffset: Int32)

 

Guid(Byte[]! aValue, Int32 aOffset)

 

init(_ aValue: Byte..., _ aOffset: Int32)

 

Sub New(aValue As Byte(), aOffset As Int32)

Parameters:

  • aValue:
  • aOffset:

constructor (not nullable String)

Create a new guid from a string.

 

constructor(aValue: not nullable String)

 

Guid(String! aValue)

 

init(_ aValue: String)

 

Guid(String aValue)

 

Sub New(aValue As String)

Parameters:

  • aValue:

Empty

 

class property Empty: not nullable Guid read;

 

class Guid! Empty { get; }

 

static var Empty: Guid { get{} }

 

class Guid Empty { __get; }

 

Shared ReadOnly Property Empty() As Guid

EmptyGuid

Returns an all zero guid.

 

class property EmptyGuid: not nullable Guid read;

 

class Guid! EmptyGuid { get; }

 

static var EmptyGuid: Guid { get{} }

 

class Guid EmptyGuid { __get; }

 

Shared ReadOnly Property EmptyGuid() As Guid

Equals  override virtual .NET, .NET Core 6.0, .NET Standard 2.0, Island

Compare a guid to another guid.

 

method Equals(aValue: Object): Boolean

 

Boolean Equals(Object aValue)

 

func Equals(_ aValue: Object) -> Boolean

 

Function Equals(aValue As Object) As Boolean

Parameters:

  • aValue:

GetHashCode  override virtual .NET, .NET Core 6.0, .NET Standard 2.0, Island

Returns a hashcode for this guid.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Function GetHashCode() As Int32

NewGuid .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

Creates a new (random) guid.

 

class method NewGuid: not nullable Guid

 

static Guid! NewGuid()

 

static func NewGuid() -> Guid

 

static Guid NewGuid()

 

Shared Function NewGuid() As Guid

NewGuid NewGuid(): not nullable Guid  virtual Toffee

 

static func NewGuid(NewGuid ) -> Guid

Parameters:

  • :

PlatformGuid

 

property PlatformGuid: PlatformGuid read;

 

PlatformGuid PlatformGuid { get; }

 

var PlatformGuid: PlatformGuid { get{} }

 

PlatformGuid PlatformGuid { __get; }

 

ReadOnly Property PlatformGuid() As PlatformGuid

Size .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

const Size: Int32 = 16;

 

const Int32 Size = 16

 

static let Size: Int32 = 16

 

Dim Size As Int32 = 16

ToByteArray

Converts a guid to a byte array. This will always be exactly 16 bytes.

 

method ToByteArray: array of Byte

 

Byte[] ToByteArray()

 

func ToByteArray() -> Byte...

 

Byte[] ToByteArray()

 

Function ToByteArray() As Byte()

ToString  override

Convert a guid to a string in the default guid format.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

ToString (GuidFormat, Boolean): not nullable String

 

method ToString(Format: GuidFormat; aUppercase: Boolean): not nullable String

 

String! ToString(GuidFormat Format, Boolean aUppercase)

 

func ToString(_ Format: GuidFormat, _ aUppercase: Boolean) -> String

 

String ToString(GuidFormat Format, Boolean aUppercase)

 

Function ToString(Format As GuidFormat, aUppercase As Boolean) As String

Parameters:

  • Format:
  • aUppercase:

TryParse (nullable JsonNode): nullable Guid .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

class method TryParse(aValue: nullable JsonNode): nullable Guid

 

static Guid? TryParse(JsonNode? aValue)

 

// Toffee
static func TryParse(_ aValue: JsonNode) -> Guid
// ToffeeV2
static func TryParse(_ aValue: JsonNode?) -> Guid?

 

Shared Function TryParse(aValue As JsonNode?) As Guid?

Parameters:

  • aValue:

TryParse (nullable String): nullable Guid

 

class method TryParse(aValue: nullable String): nullable Guid

 

static Guid? TryParse(String? aValue)

 

// Toffee
static func TryParse(_ aValue: String) -> Guid
// ToffeeV2
static func TryParse(_ aValue: String?) -> Guid?

 

static Guid TryParse(String aValue)

 

Shared Function TryParse(aValue As String?) As Guid?

Parameters:

  • aValue:

 

Size .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

const Size: Int32 = 16;

 

const Int32 Size = 16

 

static let Size: Int32 = 16

 

Dim Size As Int32 = 16

 

PlatformGuid

 

property PlatformGuid: PlatformGuid read;

 

PlatformGuid PlatformGuid { get; }

 

var PlatformGuid: PlatformGuid { get{} }

 

PlatformGuid PlatformGuid { __get; }

 

ReadOnly Property PlatformGuid() As PlatformGuid

Empty

 

class property Empty: not nullable Guid read;

 

class Guid! Empty { get; }

 

static var Empty: Guid { get{} }

 

class Guid Empty { __get; }

 

Shared ReadOnly Property Empty() As Guid

EmptyGuid

Returns an all zero guid.

 

class property EmptyGuid: not nullable Guid read;

 

class Guid! EmptyGuid { get; }

 

static var EmptyGuid: Guid { get{} }

 

class Guid EmptyGuid { __get; }

 

Shared ReadOnly Property EmptyGuid() As Guid

 

NewGuid .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

Creates a new (random) guid.

 

class method NewGuid: not nullable Guid

 

static Guid! NewGuid()

 

static func NewGuid() -> Guid

 

static Guid NewGuid()

 

Shared Function NewGuid() As Guid

NewGuid NewGuid(): not nullable Guid  virtual Toffee

 

static func NewGuid(NewGuid ) -> Guid

Parameters:

  • :

TryParse (nullable JsonNode): nullable Guid .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

class method TryParse(aValue: nullable JsonNode): nullable Guid

 

static Guid? TryParse(JsonNode? aValue)

 

// Toffee
static func TryParse(_ aValue: JsonNode) -> Guid
// ToffeeV2
static func TryParse(_ aValue: JsonNode?) -> Guid?

 

Shared Function TryParse(aValue As JsonNode?) As Guid?

Parameters:

  • aValue:

TryParse (nullable String): nullable Guid

 

class method TryParse(aValue: nullable String): nullable Guid

 

static Guid? TryParse(String? aValue)

 

// Toffee
static func TryParse(_ aValue: String) -> Guid
// ToffeeV2
static func TryParse(_ aValue: String?) -> Guid?

 

static Guid TryParse(String aValue)

 

Shared Function TryParse(aValue As String?) As Guid?

Parameters:

  • aValue:

 

constructor (not nullable array of Byte)

Create a new guid from an array of byte.

 

constructor(aValue: not nullable array of Byte)

 

Guid(Byte[]! aValue)

 

init(_ aValue: Byte...)

 

Guid(Byte[] aValue)

 

Sub New(aValue As Byte())

Parameters:

  • aValue:

constructor (not nullable array of Byte, Int32) .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

constructor(aValue: not nullable array of Byte; aOffset: Int32)

 

Guid(Byte[]! aValue, Int32 aOffset)

 

init(_ aValue: Byte..., _ aOffset: Int32)

 

Sub New(aValue As Byte(), aOffset As Int32)

Parameters:

  • aValue:
  • aOffset:

constructor (not nullable String)

Create a new guid from a string.

 

constructor(aValue: not nullable String)

 

Guid(String! aValue)

 

init(_ aValue: String)

 

Guid(String aValue)

 

Sub New(aValue As String)

Parameters:

  • aValue:

Equals  override virtual .NET, .NET Core 6.0, .NET Standard 2.0, Island

Compare a guid to another guid.

 

method Equals(aValue: Object): Boolean

 

Boolean Equals(Object aValue)

 

func Equals(_ aValue: Object) -> Boolean

 

Function Equals(aValue As Object) As Boolean

Parameters:

  • aValue:

GetHashCode  override virtual .NET, .NET Core 6.0, .NET Standard 2.0, Island

Returns a hashcode for this guid.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Function GetHashCode() As Int32

ToByteArray

Converts a guid to a byte array. This will always be exactly 16 bytes.

 

method ToByteArray: array of Byte

 

Byte[] ToByteArray()

 

func ToByteArray() -> Byte...

 

Byte[] ToByteArray()

 

Function ToByteArray() As Byte()

ToString  override

Convert a guid to a string in the default guid format.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

ToString (GuidFormat, Boolean): not nullable String

 

method ToString(Format: GuidFormat; aUppercase: Boolean): not nullable String

 

String! ToString(GuidFormat Format, Boolean aUppercase)

 

func ToString(_ Format: GuidFormat, _ aUppercase: Boolean) -> String

 

String ToString(GuidFormat Format, Boolean aUppercase)

 

Function ToString(Format As GuidFormat, aUppercase As Boolean) As String

Parameters:

  • Format:
  • aUppercase: