Guid

Overview

GUID class to hold and create 16 byte guid data.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Mapped to:
    • java.util.UUID  Cooper
    • Foundation.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)

Parameters:

  • aValue:

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)

Parameters:

  • aValue:

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; }

Equals (Object): Boolean  override virtual .NET, .NET Standard 2.0, Island-Android, Island-Ubuntu, Island-WebAssembly-wasm32, Island-Windows

Compare a guid to another guid.

 

method Equals(aValue: Object): Boolean

 

Boolean Equals(Object aValue)

 

func Equals(_ aValue: Object) -> Boolean

Parameters:

  • aValue:

Equals (RemObjects.Elements.System.Island.Object): Boolean  override virtual Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator

Compare a guid to another guid.

 

method Equals(aValue: RemObjects.Elements.System.Island.Object): Boolean

 

Boolean Equals(RemObjects.Elements.System.Island.Object aValue)

 

func Equals(_ aValue: RemObjects.Elements.System.Island.Object) -> Boolean

Parameters:

  • aValue:

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

Returns a hashcode for this guid.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

NewGuid

Creates a new (random) guid.

 

class method NewGuid: Guid

 

static Guid NewGuid()

 

static func NewGuid() -> Guid

 

static Guid NewGuid()

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()

ToString  override

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

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToString (GuidFormat): String

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

 

method ToString(Format: GuidFormat): String

 

String ToString(GuidFormat Format)

 

func ToString(_ Format: GuidFormat) -> String

 

String ToString(GuidFormat Format)

Parameters:

  • Format:

TryParse

 

class method TryParse(aValue: 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)

Parameters:

  • aValue:

 

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; }

 

NewGuid

Creates a new (random) guid.

 

class method NewGuid: Guid

 

static Guid NewGuid()

 

static func NewGuid() -> Guid

 

static Guid NewGuid()

TryParse

 

class method TryParse(aValue: 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)

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)

Parameters:

  • aValue:

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)

Parameters:

  • aValue:

Equals (Object): Boolean  override virtual .NET, .NET Standard 2.0, Island-Android, Island-Ubuntu, Island-WebAssembly-wasm32, Island-Windows

Compare a guid to another guid.

 

method Equals(aValue: Object): Boolean

 

Boolean Equals(Object aValue)

 

func Equals(_ aValue: Object) -> Boolean

Parameters:

  • aValue:

Equals (RemObjects.Elements.System.Island.Object): Boolean  override virtual Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator

Compare a guid to another guid.

 

method Equals(aValue: RemObjects.Elements.System.Island.Object): Boolean

 

Boolean Equals(RemObjects.Elements.System.Island.Object aValue)

 

func Equals(_ aValue: RemObjects.Elements.System.Island.Object) -> Boolean

Parameters:

  • aValue:

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

Returns a hashcode for this guid.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> 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()

ToString  override

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

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToString (GuidFormat): String

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

 

method ToString(Format: GuidFormat): String

 

String ToString(GuidFormat Format)

 

func ToString(_ Format: GuidFormat) -> String

 

String ToString(GuidFormat Format)

Parameters:

  • Format: