SqlString 建構函式

定義

初始化 SqlString 類別的新執行個體。

多載

名稱 Description
SqlString(String)

使用指定的字串初始化結構的新實例 SqlString

SqlString(String, Int32)

使用指定的字串與區域 ID 值初始化結構的新實例 SqlString

SqlString(Int32, SqlCompareOptions, Byte[])

使用指定的區域識別碼、比較選項及資料初始化結構的新實例 SqlString

SqlString(String, Int32, SqlCompareOptions)

使用指定的字串、locale id 及比較選項值初始化結構的新實例 SqlString

SqlString(Int32, SqlCompareOptions, Byte[], Boolean)

初始化 SqlString 類別的新執行個體。

SqlString(Int32, SqlCompareOptions, Byte[], Int32, Int32)

初始化 SqlString 類別的新執行個體。

SqlString(Int32, SqlCompareOptions, Byte[], Int32, Int32, Boolean)

初始化 SqlString 類別的新執行個體。

SqlString(String)

使用指定的字串初始化結構的新實例 SqlString

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

參數

data
String

繩子要存放。

另請參閱

適用於

SqlString(String, Int32)

使用指定的字串與區域 ID 值初始化結構的新實例 SqlString

public:
 SqlString(System::String ^ data, int lcid);
public SqlString(string data, int lcid);
new System.Data.SqlTypes.SqlString : string * int -> System.Data.SqlTypes.SqlString
Public Sub New (data As String, lcid As Integer)

參數

data
String

繩子要存放。

lcid
Int32

指定新 SqlString 建築的地理地點及語言。

另請參閱

適用於

SqlString(Int32, SqlCompareOptions, Byte[])

使用指定的區域識別碼、比較選項及資料初始化結構的新實例 SqlString

public:
 SqlString(int lcid, System::Data::SqlTypes::SqlCompareOptions compareOptions, cli::array <System::Byte> ^ data);
public SqlString(int lcid, System.Data.SqlTypes.SqlCompareOptions compareOptions, byte[] data);
new System.Data.SqlTypes.SqlString : int * System.Data.SqlTypes.SqlCompareOptions * byte[] -> System.Data.SqlTypes.SqlString
Public Sub New (lcid As Integer, compareOptions As SqlCompareOptions, data As Byte())

參數

lcid
Int32

指定新 SqlString 建築的地理地點及語言。

compareOptions
SqlCompareOptions

指定新 SqlString 結構的比較選項。

data
Byte[]

要儲存的資料陣列。

另請參閱

適用於

SqlString(String, Int32, SqlCompareOptions)

使用指定的字串、locale id 及比較選項值初始化結構的新實例 SqlString

public:
 SqlString(System::String ^ data, int lcid, System::Data::SqlTypes::SqlCompareOptions compareOptions);
public SqlString(string data, int lcid, System.Data.SqlTypes.SqlCompareOptions compareOptions);
new System.Data.SqlTypes.SqlString : string * int * System.Data.SqlTypes.SqlCompareOptions -> System.Data.SqlTypes.SqlString
Public Sub New (data As String, lcid As Integer, compareOptions As SqlCompareOptions)

參數

data
String

繩子要存放。

lcid
Int32

指定新 SqlString 建築的地理地點及語言。

compareOptions
SqlCompareOptions

指定新 SqlString 結構的比較選項。

另請參閱

適用於

SqlString(Int32, SqlCompareOptions, Byte[], Boolean)

初始化 SqlString 類別的新執行個體。

public:
 SqlString(int lcid, System::Data::SqlTypes::SqlCompareOptions compareOptions, cli::array <System::Byte> ^ data, bool fUnicode);
public SqlString(int lcid, System.Data.SqlTypes.SqlCompareOptions compareOptions, byte[] data, bool fUnicode);
new System.Data.SqlTypes.SqlString : int * System.Data.SqlTypes.SqlCompareOptions * byte[] * bool -> System.Data.SqlTypes.SqlString
Public Sub New (lcid As Integer, compareOptions As SqlCompareOptions, data As Byte(), fUnicode As Boolean)

參數

lcid
Int32

指定新 SqlString 建築的地理地點及語言。

compareOptions
SqlCompareOptions

指定新 SqlString 結構的比較選項。

data
Byte[]

要儲存的資料陣列。

fUnicode
Boolean

true 如果是 Unicode 編碼的話。 否則為 false

另請參閱

適用於

SqlString(Int32, SqlCompareOptions, Byte[], Int32, Int32)

初始化 SqlString 類別的新執行個體。

public:
 SqlString(int lcid, System::Data::SqlTypes::SqlCompareOptions compareOptions, cli::array <System::Byte> ^ data, int index, int count);
public SqlString(int lcid, System.Data.SqlTypes.SqlCompareOptions compareOptions, byte[] data, int index, int count);
new System.Data.SqlTypes.SqlString : int * System.Data.SqlTypes.SqlCompareOptions * byte[] * int * int -> System.Data.SqlTypes.SqlString
Public Sub New (lcid As Integer, compareOptions As SqlCompareOptions, data As Byte(), index As Integer, count As Integer)

參數

lcid
Int32

指定新 SqlString 建築的地理地點及語言。

compareOptions
SqlCompareOptions

指定新 SqlString 結構的比較選項。

data
Byte[]

要儲存的資料陣列。

index
Int32

陣列中的起始索引。

count
Int32

從索引到副本的字元數。

另請參閱

適用於

SqlString(Int32, SqlCompareOptions, Byte[], Int32, Int32, Boolean)

初始化 SqlString 類別的新執行個體。

public:
 SqlString(int lcid, System::Data::SqlTypes::SqlCompareOptions compareOptions, cli::array <System::Byte> ^ data, int index, int count, bool fUnicode);
public SqlString(int lcid, System.Data.SqlTypes.SqlCompareOptions compareOptions, byte[] data, int index, int count, bool fUnicode);
new System.Data.SqlTypes.SqlString : int * System.Data.SqlTypes.SqlCompareOptions * byte[] * int * int * bool -> System.Data.SqlTypes.SqlString
Public Sub New (lcid As Integer, compareOptions As SqlCompareOptions, data As Byte(), index As Integer, count As Integer, fUnicode As Boolean)

參數

lcid
Int32

指定新 SqlString 建築的地理地點及語言。

compareOptions
SqlCompareOptions

指定新 SqlString 結構的比較選項。

data
Byte[]

要儲存的資料陣列。

index
Int32

陣列中的起始索引。

count
Int32

從索引到副本的字元數。

fUnicode
Boolean

true 如果是 Unicode 編碼的話。 否則為 false

另請參閱

適用於