DekGenius.com
[ Team LiB ] Previous Section Next Section

SqlByte

System.Data.SqlTypes (system.data.dll) struct

A structure that represents a single byte (8-bit unsigned integer), which can store an integer value from 0 to 255. This maps to the SQL Server tinyint data type. This structure has methods for conversion to .NET numeric types and mathematical operations such as Mod( ) and Xor( ) .

public struct SqlByte : INullable, IComparable {
// Public Constructors
   public SqlByte( byte value);  
// Public Static Fields
   public static readonly SqlByte MaxValue;            // =255
   public static readonly SqlByte MinValue;            // =0
   public static readonly SqlByte Null;                // =Null
   public static readonly SqlByte Zero;                // =0
// Public Instance Properties
   public bool IsNull{get; }                           // implements INullable
   public byte Value{get; } 
// Public Static Methods
   public static SqlByte Add( SqlByte x, SqlByte y);  
   public static SqlByte BitwiseAnd( SqlByte x, SqlByte y);  
   public static SqlByte BitwiseOr( SqlByte x, SqlByte y);  
   public static SqlByte Divide( SqlByte x, SqlByte y);  
   public static SqlBoolean Equals( SqlByte x, SqlByte y);  
   public static SqlBoolean GreaterThan(SqlByte x, SqlByte y);
   public static SqlBoolean GreaterThanOrEqual(SqlByte x, SqlByte y);
   public static SqlBoolean LessThan( SqlByte x, SqlByte y);  
   public static SqlBoolean LessThanOrEqual(SqlByte x, SqlByte y);
   public static SqlByte Mod( SqlByte x, SqlByte y);  
   public static SqlByte Multiply( SqlByte x, SqlByte y);  
   public static SqlBoolean NotEquals( SqlByte x, SqlByte y);  
   public static SqlByte OnesComplement( SqlByte x);  
   public static SqlByte operator &(SqlByte x, SqlByte y);
   public static SqlByte operator |(SqlByte x, SqlByte y);
   public static SqlByte operator ^(SqlByte x, SqlByte y);
   public static SqlByte operator ~(SqlByte x);
   public static SqlByte Parse( string s);  
   public static SqlByte Subtract( SqlByte x, SqlByte y);  
   public static SqlByte Xor( SqlByte x, SqlByte y);  
   public static SqlByte operator %(SqlByte x, SqlByte y);
   public static SqlByte operator *(SqlByte x, SqlByte y);
   public static SqlByte operator /(SqlByte x, SqlByte y);
   public static SqlByte operator -(SqlByte x, SqlByte y);
   public static SqlByte operator +(SqlByte x, SqlByte y);
   public static SqlBoolean operator !=(SqlByte x, SqlByte y);
   public static SqlBoolean operator <(SqlByte x, SqlByte y);
   public static SqlBoolean operator <=(SqlByte x, SqlByte y);
   public static SqlBoolean operator ==(SqlByte x, SqlByte y);
   public static SqlBoolean operator >(SqlByte x, SqlByte y); 
   public static SqlBoolean operator >=(SqlByte x, SqlByte y);
   public static explicit operator byte( SqlByte x);  
   public static explicit operator SqlByte( SqlBoolean x);  
   public static explicit operator SqlByte( SqlDecimal x);  
   public static explicit operator SqlByte( SqlDouble x);  
   public static explicit operator SqlByte( SqlInt16 x);  
   public static explicit operator SqlByte( SqlInt32 x);  
   public static explicit operator SqlByte( SqlInt64 x);  
   public static explicit operator SqlByte( SqlMoney x);  
   public static explicit operator SqlByte( SqlSingle x);  
   public static explicit operator SqlByte( SqlString x);  
   public static implicit operator SqlByte( byte x);  
// Public Instance Methods
   public int CompareTo( object value);            // implements IComparable
   public override bool Equals( object value);      // overrides ValueType
   public override int GetHashCode(  );               // overrides ValueType
   public SqlBoolean ToSqlBoolean(  );  
   public SqlDecimal ToSqlDecimal(  );  
   public SqlDouble ToSqlDouble(  );  
   public SqlInt16 ToSqlInt16(  );  
   public SqlInt32 ToSqlInt32(  );  
   public SqlInt64 ToSqlInt64(  );  
   public SqlMoney ToSqlMoney(  );  
   public SqlSingle ToSqlSingle(  );  
   public SqlString ToSqlString(  );  
   public override string ToString(  );               // overrides ValueType
}

Hierarchy

System.Object figs/U2192.gif System.ValueType figs/U2192.gif SqlByte(INullable, System.IComparable)

Returned By

System.Data.SqlClient.SqlDataReader.GetSqlByte( ) , SqlBoolean.ToSqlByte( ) , SqlDecimal.ToSqlByte( ) , SqlDouble.ToSqlByte( ) , SqlInt16.ToSqlByte( ) , SqlInt32.ToSqlByte( ) , SqlInt64.ToSqlByte( ) , SqlMoney.ToSqlByte( ) , SqlSingle.ToSqlByte( ) , SqlString.ToSqlByte( )

    [ Team LiB ] Previous Section Next Section