Guid

Overview

Guid class to create/hold/convert guids

Location

 

constructor  protected    (declared in ValueType)

 

constructor

 

Guid()

 

init()

 

Guid()

 

Sub New()

constructor (^Byte)

 

constructor(Value: ^Byte)

 

Guid(Byte* Value)

 

init(_ Value: UnsafeMutablePointer<Byte>)

 

Guid(Byte* Value)

 

Sub New(Value As Ptr(Of Byte))

Parameters:

  • Value:

constructor (array [0..15] of Byte)

 

constructor(Value: array [0..15] of Byte)

 

Guid(array [0..15] of Byte Value)

 

init(_ Value: array [0..15] of Byte)

 

Guid(array [0..15] of Byte Value)

 

Sub New(Value As array [0..15] of Byte)

Parameters:

  • Value:

constructor (array of Byte)

 

constructor(Value: array of Byte)

 

Guid(Byte[] Value)

 

init(_ Value: Byte...)

 

Guid(Byte[] Value)

 

Sub New(Value As Byte())

Parameters:

  • Value:

constructor (String)

 

constructor(Value: String)

 

Guid(String Value)

 

init(_ Value: String)

 

Guid(String Value)

 

Sub New(Value As String)

Parameters:

  • Value:

Empty

 

class property Empty: Guid read;

 

class Guid Empty { get; }

 

static var Empty: Guid { get{} }

 

class Guid Empty { __get; }

 

Shared ReadOnly Property Empty() As Guid

Equals (Object): Boolean  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Equals (Object): Boolean  override virtual

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj:

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

NewGuid

Returns a new random guid.

 

class method NewGuid: Guid

 

static Guid NewGuid()

 

static func NewGuid() -> Guid

 

static Guid NewGuid()

 

Shared Function NewGuid() As Guid

Parse

Parse a guid from a string.

 

class method Parse(Value: String): Guid

 

static Guid Parse(String Value)

 

static func Parse(_ Value: String) -> Guid

 

static Guid Parse(String Value)

 

Shared Function Parse(Value As String) As Guid

Parameters:

  • Value:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

ToByteArray

gets the byte[] equivalent of a guid.

 

method ToByteArray: array of Byte

 

Byte[] ToByteArray()

 

func ToByteArray() -> Byte...

 

Byte[] ToByteArray()

 

Function ToByteArray() As Byte()

ToString  override virtual

Converts a guid to a string

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

ToString (String): String

 

method ToString(Format: String): String

 

String ToString(String Format)

 

func ToString(_ Format: String) -> String

 

String ToString(String Format)

 

Function ToString(Format As String) As String

Parameters:

  • Format:

TryParse

Parse a guid from a string, returns true on success.

 

class method TryParse(Value: String; out aResult: Guid): Boolean

 

static Boolean TryParse(String Value, out Guid aResult)

 

static func TryParse(_ Value: String, _ aResult: Guid) -> Boolean

 

static Boolean TryParse(String Value, __out Guid aResult)

 

Shared Function TryParse(Value As String, <OutAttribute> ByRef aResult As Guid) As Boolean

Parameters:

  • Value:
  • aResult:

 

Empty

 

class property Empty: Guid read;

 

class Guid Empty { get; }

 

static var Empty: Guid { get{} }

 

class Guid Empty { __get; }

 

Shared ReadOnly Property Empty() As Guid

 

NewGuid

Returns a new random guid.

 

class method NewGuid: Guid

 

static Guid NewGuid()

 

static func NewGuid() -> Guid

 

static Guid NewGuid()

 

Shared Function NewGuid() As Guid

Parse

Parse a guid from a string.

 

class method Parse(Value: String): Guid

 

static Guid Parse(String Value)

 

static func Parse(_ Value: String) -> Guid

 

static Guid Parse(String Value)

 

Shared Function Parse(Value As String) As Guid

Parameters:

  • Value:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

TryParse

Parse a guid from a string, returns true on success.

 

class method TryParse(Value: String; out aResult: Guid): Boolean

 

static Boolean TryParse(String Value, out Guid aResult)

 

static func TryParse(_ Value: String, _ aResult: Guid) -> Boolean

 

static Boolean TryParse(String Value, __out Guid aResult)

 

Shared Function TryParse(Value As String, <OutAttribute> ByRef aResult As Guid) As Boolean

Parameters:

  • Value:
  • aResult:

 

constructor  protected    (declared in ValueType)

 

constructor

 

Guid()

 

init()

 

Guid()

 

Sub New()

constructor (^Byte)

 

constructor(Value: ^Byte)

 

Guid(Byte* Value)

 

init(_ Value: UnsafeMutablePointer<Byte>)

 

Guid(Byte* Value)

 

Sub New(Value As Ptr(Of Byte))

Parameters:

  • Value:

constructor (array [0..15] of Byte)

 

constructor(Value: array [0..15] of Byte)

 

Guid(array [0..15] of Byte Value)

 

init(_ Value: array [0..15] of Byte)

 

Guid(array [0..15] of Byte Value)

 

Sub New(Value As array [0..15] of Byte)

Parameters:

  • Value:

constructor (array of Byte)

 

constructor(Value: array of Byte)

 

Guid(Byte[] Value)

 

init(_ Value: Byte...)

 

Guid(Byte[] Value)

 

Sub New(Value As Byte())

Parameters:

  • Value:

constructor (String)

 

constructor(Value: String)

 

Guid(String Value)

 

init(_ Value: String)

 

Guid(String Value)

 

Sub New(Value As String)

Parameters:

  • Value:

Equals (Object): Boolean  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Equals (Object): Boolean  override virtual

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj:

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

ToByteArray

gets the byte[] equivalent of a guid.

 

method ToByteArray: array of Byte

 

Byte[] ToByteArray()

 

func ToByteArray() -> Byte...

 

Byte[] ToByteArray()

 

Function ToByteArray() As Byte()

ToString  override virtual

Converts a guid to a string

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

ToString (String): String

 

method ToString(Format: String): String

 

String ToString(String Format)

 

func ToString(_ Format: String) -> String

 

String ToString(String Format)

 

Function ToString(Format As String) As String

Parameters:

  • Format: