Bewerken

Share via


SqlInt16.ToSqlByte Method

Definition

Converts this SqlInt16 structure to SqlByte.

public:
 System::Data::SqlTypes::SqlByte ToSqlByte();
public System.Data.SqlTypes.SqlByte ToSqlByte ();
member this.ToSqlByte : unit -> System.Data.SqlTypes.SqlByte
Public Function ToSqlByte () As SqlByte

Returns

A SqlByte structure whose Value equals the Value of this SqlInt16 structure. If the value of the SqlInt16 is less than 0 or greater than 255, an OverflowException occurs.

Applies to

See also