SqlDecimal.ToSqlByte Method ()

 

Converts this SqlDecimal structure to SqlByte.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public SqlByte ToSqlByte()

Return Value

Type: System.Data.SqlTypes.SqlByte

A SqlByte structure whose Value equals the Value of this SqlDecimal structure. If the SqlDecimal structure's Value is true, the SqlByte structure's Value will be 1. Otherwise, the SqlByte structure's Value will be 0.

.NET Framework
Available since 1.1
Return to top
Show: