Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SqlString class.
SqlString(String) |
Initializes a new instance of the SqlString structure using the specified string. |
SqlString(String, Int32) |
Initializes a new instance of the SqlString structure using the specified string and locale id values. |
SqlString(Int32, SqlCompareOptions, Byte[]) |
Initializes a new instance of the SqlString structure using the specified locale id, compare options, and data. |
SqlString(String, Int32, SqlCompareOptions) |
Initializes a new instance of the SqlString structure using the specified string, locale id, and compare option values. |
SqlString(Int32, SqlCompareOptions, Byte[], Boolean) |
Initializes a new instance of the SqlString class. |
SqlString(Int32, SqlCompareOptions, Byte[], Int32, Int32) |
Initializes a new instance of the SqlString class. |
SqlString(Int32, SqlCompareOptions, Byte[], Int32, Int32, Boolean) |
Initializes a new instance of the SqlString class. |
Initializes a new instance of the SqlString structure using the specified string.
public:
SqlString(System::String ^ data);
public SqlString(string? data);
public SqlString(string data);
new System.Data.SqlTypes.SqlString : string -> System.Data.SqlTypes.SqlString
Public Sub New (data As String)
The string to store.
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 |
Initializes a new instance of the SqlString structure using the specified string and locale id values.
public:
SqlString(System::String ^ data, int lcid);
public SqlString(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)
The string to store.
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 |
Initializes a new instance of the SqlString structure using the specified locale id, compare options, and data.
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())
Specifies the compare options for the new SqlString structure.
The data array to store.
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 |
Initializes a new instance of the SqlString structure using the specified string, locale id, and compare option values.
public:
SqlString(System::String ^ data, int lcid, System::Data::SqlTypes::SqlCompareOptions compareOptions);
public SqlString(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)
The string to store.
Specifies the compare options for the new SqlString structure.
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 |
Initializes a new instance of the SqlString class.
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)
Specifies the compare options for the new SqlString structure.
The data array to store.
true
if Unicode encoded. Otherwise, false
.
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 |
Initializes a new instance of the SqlString class.
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);
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)
Specifies the compare options for the new SqlString structure.
The data array to store.
The starting index within the array.
The number of characters from index to copy.
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 |
Initializes a new instance of the SqlString class.
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);
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)
Specifies the compare options for the new SqlString structure.
The data array to store.
The starting index within the array.
The number of characters from index to copy.
true
if Unicode encoded. Otherwise, false
.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in