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
- Mapped to:
- UUID Cooper
- NSUUID Toffee, ToffeeV2
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(aValue: not nullable array of Byte; aOffset: Int32)Guid(Byte[]! aValue, Int32 aOffset)init( aValue: Byte..., aOffset: Int32)Guid(Byte[] aValue, Integer aOffset)Sub New(aValue As Byte(), aOffset As Int32)Parameters:
- aValue:
- aOffset:
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:
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 GuidReturns 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 GuidCompare a guid to another guid.
method Equals(aValue: Object): BooleanBoolean Equals(Object aValue)func Equals(_ aValue: Object) -> BooleanFunction Equals(aValue As Object) As BooleanParameters:
- aValue:
Returns a hashcode for this guid.
method GetHashCode: Int32Int32 GetHashCode()func GetHashCode() -> Int32Function GetHashCode() As Int32Creates a new (random) guid.
class method NewGuid: not nullable Guidstatic Guid! NewGuid()static func NewGuid() -> Guidstatic Guid NewGuid()Shared Function NewGuid() As Guidproperty PlatformGuid: PlatformGuid read;PlatformGuid PlatformGuid { get; }var PlatformGuid: PlatformGuid { get{} }PlatformGuid PlatformGuid { __get; }ReadOnly Property PlatformGuid() As PlatformGuidconst Size: Int32 = 16const Int32 Size = 16static let Size: Int32 = 16static final Integer Size = 16Const Size As Int32 = 16Converts a guid to a byte array. This will always be exactly 16 bytes.
method ToByteArray: array of ByteByte[] ToByteArray()func ToByteArray() -> Byte...Byte[] ToByteArray()Function ToByteArray() As Byte()Convert a guid to a string in the default guid format.
method ToString: StringString ToString()func ToString() -> StringString ToString()Function ToString() As Stringmethod ToString(Format: GuidFormat; aUppercase: Boolean := false): not nullable StringString! ToString(GuidFormat Format, Boolean aUppercase = false)func ToString( Format: GuidFormat, aUppercase: Boolean = false) -> StringString ToString(GuidFormat Format, Boolean aUppercase)Function ToString(Format As GuidFormat, aUppercase As Boolean = false) As StringParameters:
- Format:
- aUppercase:
class method TryParse(aValue: nullable JsonNode): nullable Guidstatic Guid? TryParse(JsonNode? aValue)// Toffee
static func TryParse( aValue: JsonNode) -> Guid
// ToffeeV2
static func TryParse( aValue: JsonNode?) -> Guid?static Guid TryParse(JsonNode aValue)Shared Function TryParse(aValue As JsonNode?) As Guid?Parameters:
- aValue:
class method TryParse(aValue: nullable String): nullable Guidstatic 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:
const Size: Int32 = 16const Int32 Size = 16static let Size: Int32 = 16static final Integer Size = 16Const Size As Int32 = 16
property PlatformGuid: PlatformGuid read;PlatformGuid PlatformGuid { get; }var PlatformGuid: PlatformGuid { get{} }PlatformGuid PlatformGuid { __get; }ReadOnly Property PlatformGuid() As PlatformGuidclass property Empty: not nullable Guid read;class Guid! Empty { get; }static var Empty: Guid { get{} }class Guid Empty { __get; }Shared ReadOnly Property Empty() As GuidReturns 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
Creates a new (random) guid.
class method NewGuid: not nullable Guidstatic Guid! NewGuid()static func NewGuid() -> Guidstatic Guid NewGuid()Shared Function NewGuid() As Guidclass method TryParse(aValue: nullable JsonNode): nullable Guidstatic Guid? TryParse(JsonNode? aValue)// Toffee
static func TryParse( aValue: JsonNode) -> Guid
// ToffeeV2
static func TryParse( aValue: JsonNode?) -> Guid?static Guid TryParse(JsonNode aValue)Shared Function TryParse(aValue As JsonNode?) As Guid?Parameters:
- aValue:
class method TryParse(aValue: nullable String): nullable Guidstatic 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:
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(aValue: not nullable array of Byte; aOffset: Int32)Guid(Byte[]! aValue, Int32 aOffset)init( aValue: Byte..., aOffset: Int32)Guid(Byte[] aValue, Integer aOffset)Sub New(aValue As Byte(), aOffset As Int32)Parameters:
- aValue:
- aOffset:
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:
Compare a guid to another guid.
method Equals(aValue: Object): BooleanBoolean Equals(Object aValue)func Equals(_ aValue: Object) -> BooleanFunction Equals(aValue As Object) As BooleanParameters:
- aValue:
Returns a hashcode for this guid.
method GetHashCode: Int32Int32 GetHashCode()func GetHashCode() -> Int32Function GetHashCode() As Int32Converts a guid to a byte array. This will always be exactly 16 bytes.
method ToByteArray: array of ByteByte[] ToByteArray()func ToByteArray() -> Byte...Byte[] ToByteArray()Function ToByteArray() As Byte()Convert a guid to a string in the default guid format.
method ToString: StringString ToString()func ToString() -> StringString ToString()Function ToString() As Stringmethod ToString(Format: GuidFormat; aUppercase: Boolean := false): not nullable StringString! ToString(GuidFormat Format, Boolean aUppercase = false)func ToString( Format: GuidFormat, aUppercase: Boolean = false) -> StringString ToString(GuidFormat Format, Boolean aUppercase)Function ToString(Format As GuidFormat, aUppercase As Boolean = false) As StringParameters:
- Format:
- aUppercase: