Edit

Share via


SqlString.Explicit Operator

Definition

Converts to and from a SqlString.

Overloads

Explicit(SqlString to String)

Converts a SqlString to a String.

Explicit(SqlSingle to SqlString)

Converts the specified SqlSingle parameter to SqlString.

Explicit(SqlMoney to SqlString)

Converts the specified SqlMoney parameter to SqlString.

Explicit(SqlInt64 to SqlString)

Converts the specified SqlInt64 parameter to SqlString.

Explicit(SqlInt16 to SqlString)

Converts the specified SqlInt16 parameter to SqlString.

Explicit(SqlInt32 to SqlString)

Converts the specified SqlInt32 parameter to SqlString.

Explicit(SqlDouble to SqlString)

Converts the specified SqlDouble parameter 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)

Converts the specified SqlByte structure to SqlString.

Explicit(SqlBoolean to SqlString)

Converts the specified SqlBoolean structure to SqlString.

Explicit(SqlGuid to SqlString)

Converts the specified SqlGuid parameter to SqlString.

Explicit(SqlString to String)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts a SqlString to a String.

public static explicit operator string(System.Data.SqlTypes.SqlString x);

Parameters

x
SqlString

The SqlString to be converted.

Returns

A String, whose contents are the same as the Value property of the SqlString parameter.

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlSingle to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlSingle parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlSingle x);

Parameters

x
SqlSingle

The SqlSingle structure to be converted.

Returns

A new SqlString that contains the string representation of the SqlSingle parameter.

Remarks

The equivalent method for this operator is SqlSingle.ToSqlString().

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlMoney to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlMoney parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlMoney x);

Parameters

x
SqlMoney

The SqlMoney structure to be converted.

Returns

A new SqlString that contains the string representation of the SqlMoney parameter.

Remarks

The equivalent method for this operator is SqlMoney.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlInt64 to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlInt64 parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt64 x);

Parameters

x
SqlInt64

The SqlInt64 structure to be converted.

Returns

A new SqlString object that contains the string representation of the SqlInt64 parameter.

Remarks

The equivalent method for this operator is SqlInt64.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlInt16 to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlInt16 parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt16 x);

Parameters

x
SqlInt16

The SqlInt16 structure to be converted.

Returns

A new SqlString object that contains the string representation of the SqlInt16 parameter.

Remarks

The equivalent method for this operator is SqlInt16.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlInt32 to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlInt32 parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt32 x);

Parameters

x
SqlInt32

The SqlInt32 structure to be converted.

Returns

A new SqlString object that contains the string representation of the SqlInt32 parameter.

Remarks

The equivalent method for this operator is SqlInt32.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlDouble to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlDouble parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDouble x);

Parameters

x
SqlDouble

The SqlDouble structure to be converted.

Returns

A new SqlString that contains the string representation of the SqlDouble parameter.

Remarks

The equivalent method for this operator is SqlDouble.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlDecimal to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlDecimal parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDecimal x);

Parameters

x
SqlDecimal

The SqlDecimal structure to be converted.

Returns

A new SqlString that contains the string representation of the SqlDecimal parameter.

Remarks

The equivalent method for this operator is SqlDecimal.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlDateTime to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlDateTime parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDateTime x);

Parameters

x
SqlDateTime

The SqlDateTime structure to be converted.

Returns

A new SqlString that contains the string representation of the SqlDateTime parameter.

Remarks

The equivalent method for this operator is SqlDateTime.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlByte to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlByte structure to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlByte x);

Parameters

x
SqlByte

The SqlByte structure to be converted.

Returns

A new SqlString object that contains the string representation of the SqlByte parameter.

Remarks

The equivalent method for this operator is SqlByte.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlBoolean to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlBoolean structure to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlBoolean x);

Parameters

x
SqlBoolean

The SqlBoolean structure to be converted.

Returns

A new SqlString that contains the string representation of the SqlBoolean parameter.

Remarks

The equivalent method for this operator is SqlBoolean.ToSqlString()

See also

Applies to

.NET 10 and other versions
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

Explicit(SqlGuid to SqlString)

Source:
SQLString.cs
Source:
SQLString.cs
Source:
SQLString.cs

Converts the specified SqlGuid parameter to SqlString.

public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlGuid x);

Parameters

x
SqlGuid

The SqlGuid structure to be converted.

Returns

A SqlString whose value is the string representation of the specified SqlGuid.

Remarks

The equivalent method for this operator is SqlGuid.ToSqlString()

See also

Applies to

.NET 10 and other versions
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