Edit

Share via


SqlBytes.Explicit Operator

Definition

Converts to a SqlBytes structure.

Overloads

Explicit(SqlBytes to SqlBinary)

Converts a SqlBytes structure to a SqlBinary structure.

Explicit(SqlBinary to SqlBytes)

Converts a SqlBinary structure to a SqlBytes structure.

Explicit(SqlBytes to SqlBinary)

Source:
SQLBytes.cs
Source:
SQLBytes.cs
Source:
SQLBytes.cs

Converts a SqlBytes structure to a SqlBinary structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBinary(System.Data.SqlTypes.SqlBytes value);

Parameters

value
SqlBytes

The SqlBytes structure to be converted.

Returns

A SqlBinary structure.

Remarks

The equivalent method for this operator is SqlBytes.ToSqlBinary().

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 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(SqlBinary to SqlBytes)

Source:
SQLBytes.cs
Source:
SQLBytes.cs
Source:
SQLBytes.cs

Converts a SqlBinary structure to a SqlBytes structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBytes(System.Data.SqlTypes.SqlBinary value);

Parameters

value
SqlBinary

The SqlBinary structure to be converted.

Returns

A SqlBytes structure.

Remarks

The equivalent method for this operator is SqlBytes.SqlBytes(SqlBinary).

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 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