SqlDecimal.ToSqlByte Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: