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.
Converts to and from a SqlString.
Explicit(SqlString to String) | |
Explicit(SqlSingle to SqlString) | |
Explicit(SqlMoney to SqlString) | |
Explicit(SqlInt64 to SqlString) | |
Explicit(SqlInt16 to SqlString) | |
Explicit(SqlInt32 to SqlString) | |
Explicit(SqlDouble to SqlString) | |
Explicit(SqlDecimal to SqlString) |
Converts the specified SqlDecimal parameter to SqlString. |
Explicit(SqlDateTime to SqlString) |
Converts the specified SqlDateTime parameter to SqlString. |
Explicit(SqlByte to SqlString) | |
Explicit(SqlBoolean to SqlString) |
Converts the specified SqlBoolean structure to SqlString. |
Explicit(SqlGuid to SqlString) |
public:
static explicit operator System::String ^(System::Data::SqlTypes::SqlString x);
public static explicit operator string(System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> string
Public Shared Narrowing Operator CType (x As SqlString) As String
A String
, whose contents are the same as the Value property of the SqlString parameter.
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 |
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlSingle x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlSingle x);
static member op_Explicit : System.Data.SqlTypes.SqlSingle -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlSingle) As SqlString
A new SqlString that contains the string representation of the SqlSingle parameter.
The equivalent method for this operator is SqlSingle.ToSqlString().
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 |
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlMoney x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlMoney x);
static member op_Explicit : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlMoney) As SqlString
A new SqlString that contains the string representation of the SqlMoney parameter.
The equivalent method for this operator is SqlMoney.ToSqlString()
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 |
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlInt64 x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt64 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt64 -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlInt64) As SqlString
A new SqlString object that contains the string representation of the SqlInt64 parameter.
The equivalent method for this operator is SqlInt64.ToSqlString()
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 |
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlInt16 x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt16 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt16 -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlInt16) As SqlString
A new SqlString object that contains the string representation of the SqlInt16 parameter.
The equivalent method for this operator is SqlInt16.ToSqlString()
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 |
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlInt32 x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt32 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt32 -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlInt32) As SqlString
The SqlInt32 structure to be converted.
A new SqlString object that contains the string representation of the SqlInt32 parameter.
The equivalent method for this operator is SqlInt32.ToSqlString()
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 |
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlDouble x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDouble x);
static member op_Explicit : System.Data.SqlTypes.SqlDouble -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlDouble) As SqlString
A new SqlString that contains the string representation of the SqlDouble parameter.
The equivalent method for this operator is SqlDouble.ToSqlString()
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 |
Converts the specified SqlDecimal parameter to SqlString.
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlDecimal x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDecimal x);
static member op_Explicit : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlDecimal) As SqlString
The SqlDecimal
structure to be converted.
A new SqlString that contains the string representation of the SqlDecimal
parameter.
The equivalent method for this operator is SqlDecimal.ToSqlString()
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 |
Converts the specified SqlDateTime parameter to SqlString.
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlDateTime x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDateTime x);
static member op_Explicit : System.Data.SqlTypes.SqlDateTime -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlDateTime) As SqlString
The SqlDateTime structure to be converted.
A new SqlString that contains the string representation of the SqlDateTime parameter.
The equivalent method for this operator is SqlDateTime.ToSqlString()
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 |
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlByte x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlByte x);
static member op_Explicit : System.Data.SqlTypes.SqlByte -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlByte) As SqlString
A new SqlString object that contains the string representation of the SqlByte parameter.
The equivalent method for this operator is SqlByte.ToSqlString()
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 |
Converts the specified SqlBoolean structure to SqlString.
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlBoolean x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlBoolean x);
static member op_Explicit : System.Data.SqlTypes.SqlBoolean -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlBoolean) As SqlString
The SqlBoolean structure to be converted.
A new SqlString that contains the string representation of the SqlBoolean parameter.
The equivalent method for this operator is SqlBoolean.ToSqlString()
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 |
public:
static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlGuid x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlGuid x);
static member op_Explicit : System.Data.SqlTypes.SqlGuid -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlGuid) As SqlString
A SqlString whose value is the string representation of the specified SqlGuid.
The equivalent method for this operator is SqlGuid.ToSqlString()
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