Редагувати

Поділитися через


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.

public:
 SqlGuid(cli::array <System::Byte> ^ value);
public SqlGuid (byte[] value);
new System.Data.SqlTypes.SqlGuid : byte[] -> System.Data.SqlTypes.SqlGuid
Public Sub New (value As Byte())

Parameters

value
Byte[]

A byte array.

See also

Applies to

SqlGuid(Guid)

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

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

public:
 SqlGuid(Guid g);
public SqlGuid (Guid g);
new System.Data.SqlTypes.SqlGuid : Guid -> System.Data.SqlTypes.SqlGuid
Public Sub New (g As Guid)

Parameters

g
Guid

A Guid.

See also

Applies to

SqlGuid(String)

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

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

public:
 SqlGuid(System::String ^ s);
public SqlGuid (string s);
new System.Data.SqlTypes.SqlGuid : string -> System.Data.SqlTypes.SqlGuid
Public Sub New (s As String)

Parameters

s
String

A String object.

See also

Applies to

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.

public:
 SqlGuid(int a, short b, short c, System::Byte d, System::Byte e, System::Byte f, System::Byte g, System::Byte h, System::Byte i, System::Byte j, System::Byte k);
public SqlGuid (int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k);
new System.Data.SqlTypes.SqlGuid : int * int16 * int16 * byte * byte * byte * byte * byte * byte * byte * byte -> System.Data.SqlTypes.SqlGuid
Public Sub New (a As Integer, b As Short, c As Short, d As Byte, e As Byte, f As Byte, g As Byte, h As Byte, i As Byte, j As Byte, k As Byte)

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