SqlGuid 建構函式

定義

初始化 SqlGuid 結構的新執行個體。Initializes a new instance of the SqlGuid structure.

多載

SqlGuid(Byte[])

使用提供的位元組陣列參數,初始化 SqlGuid 結構的新執行個體。Initializes a new instance of the SqlGuid structure using the supplied byte array parameter.

SqlGuid(Guid)

使用指定的 SqlGuid 參數,初始化 Guid 結構的新執行個體。Initializes a new instance of the SqlGuid structure using the specified Guid parameter.

SqlGuid(String)

使用指定的 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)

使用指定的值,初始化 SqlGuid 結構的新執行個體。Initializes a new instance of the SqlGuid structure using the specified values.

SqlGuid(Byte[])

使用提供的位元組陣列參數,初始化 SqlGuid 結構的新執行個體。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())

參數

value
Byte[]

位元組陣列。A byte array.

另請參閱

適用於

SqlGuid(Guid)

使用指定的 SqlGuid 參數,初始化 Guid 結構的新執行個體。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)

參數

另請參閱

適用於

SqlGuid(String)

使用指定的 SqlGuid 參數,初始化 String 結構的新執行個體。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)

參數

s
String

String 物件。A String object.

另請參閱

適用於

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

使用指定的值,初始化 SqlGuid 結構的新執行個體。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)

參數

a
Int32

SqlGuid 的前 4 個位元組。The first four bytes of the SqlGuid.

b
Int16

SqlGuid 的下兩個位元組。The next two bytes of the SqlGuid.

c
Int16

SqlGuid 的下兩個位元組。The next two bytes of the SqlGuid.

d
Byte

SqlGuid 的下一個位元組。The next byte of the SqlGuid.

e
Byte

SqlGuid 的下一個位元組。The next byte of the SqlGuid.

f
Byte

SqlGuid 的下一個位元組。The next byte of the SqlGuid.

g
Byte

SqlGuid 的下一個位元組。The next byte of the SqlGuid.

h
Byte

SqlGuid 的下一個位元組。The next byte of the SqlGuid.

i
Byte

SqlGuid 的下一個位元組。The next byte of the SqlGuid.

j
Byte

SqlGuid 的下一個位元組。The next byte of the SqlGuid.

k
Byte

SqlGuid 的下一個位元組。The next byte of the SqlGuid.

備註

以這種方式指定個別位元組,可以用來規避特定電腦類型上的位元組順序限制 (以大到小或位元組由小到大的順序) 。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.

另請參閱

適用於