SqlGuid Constructors

Definition

Initializes a new instance of the SqlGuid structure.

Overloads

SqlGuid(Byte[])

Initializes a new instance of the SqlGuid structure using the supplied byte array parameter.

SqlGuid(Guid)

Initializes a new instance of the SqlGuid structure using the specified Guid parameter.

SqlGuid(String)

Initializes a new instance of the SqlGuid structure using the specified String parameter.

SqlGuid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)

Initializes a new instance of the SqlGuid structure using the specified values.

SqlGuid(Byte[])

Source:
SQLGuid.cs
Source:
SQLGuid.cs
Source:
SQLGuid.cs

Initializes a new instance of the SqlGuid structure using the supplied byte array parameter.

C#
public SqlGuid(byte[] value);

Parameters

value
Byte[]

A byte array.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

SqlGuid(Guid)

Source:
SQLGuid.cs
Source:
SQLGuid.cs
Source:
SQLGuid.cs

Initializes a new instance of the SqlGuid structure using the specified Guid parameter.

C#
public SqlGuid(Guid g);

Parameters

g
Guid

A Guid.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

SqlGuid(String)

Source:
SQLGuid.cs
Source:
SQLGuid.cs
Source:
SQLGuid.cs

Initializes a new instance of the SqlGuid structure using the specified String parameter.

C#
public SqlGuid(string s);

Parameters

s
String

A String object.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

SqlGuid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)

Source:
SQLGuid.cs
Source:
SQLGuid.cs
Source:
SQLGuid.cs

Initializes a new instance of the SqlGuid structure using the specified values.

C#
public SqlGuid(int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k);

Parameters

a
Int32

The first four bytes of the SqlGuid.

b
Int16

The next two bytes of the SqlGuid.

c
Int16

The next two bytes of the SqlGuid.

d
Byte

The next byte of the SqlGuid.

e
Byte

The next byte of the SqlGuid.

f
Byte

The next byte of the SqlGuid.

g
Byte

The next byte of the SqlGuid.

h
Byte

The next byte of the SqlGuid.

i
Byte

The next byte of the SqlGuid.

j
Byte

The next byte of the SqlGuid.

k
Byte

The next byte of the SqlGuid.

Remarks

Specifying individual bytes in this manner can be used to circumvent byte order restrictions (big-endian or little-endian byte order) on particular types of computers.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1