[ Team LiB ] Previous Section Next Section

SqlBoolean

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

A structure that represents an integer that is either a 1 (true ) or 0 (false ). Any nonzero value is interpreted as 1. This structure can be used with the SQL Server bit data type.

public struct SqlBoolean : INullable, IComparable {
// Public Constructors
   public SqlBoolean( bool value);  
   public SqlBoolean( int value);  
// Public Static Fields
   public static readonly SqlBoolean False;              // =False
   public static readonly SqlBoolean Null;               // =Null
   public static readonly SqlBoolean One;                // =True
   public static readonly SqlBoolean True;               // =True
   public static readonly SqlBoolean Zero;                     // =False
// Public Instance Properties
   public byte ByteValue{get; } 
   public bool IsFalse{get; } 
   public bool IsNull{get; }                              // implements INullable
   public bool IsTrue{get; } 
   public bool Value{get; } 
// Public Static Methods
   public static SqlBoolean And( SqlBoolean x, SqlBoolean y);  
   public static SqlBoolean Equals(SqlBoolean x, SqlBoolean y);
   public static SqlBoolean NotEquals(SqlBoolean x, SqlBoolean y);
   public static SqlBoolean OnesComplement( SqlBoolean x);  
   public static SqlBoolean operator &(SqlBoolean x, SqlBoolean y);
   public static SqlBoolean operator |(SqlBoolean x, SqlBoolean y);
   public static SqlBoolean operator ^(SqlBoolean x, SqlBoolean y);
   public static bool operator op_False( SqlBoolean x);  
   public static SqlBoolean operator !(SqlBoolean x); 
   public static SqlBoolean operator ~(SqlBoolean x);
   public static bool operator op_True( SqlBoolean x);  
   public static SqlBoolean Or( SqlBoolean x, SqlBoolean y);  
   public static SqlBoolean Parse( string s);  
   public static SqlBoolean Xor( SqlBoolean x, SqlBoolean y);  
   public static SqlBoolean operator !=(SqlBoolean x, SqlBoolean y);
   public static SqlBoolean operator ==(SqlBoolean x, SqlBoolean y);
   public static explicit operator bool( SqlBoolean x);  
   public static explicit operator SqlBoolean( SqlByte x);  
   public static explicit operator SqlBoolean( SqlDecimal x);  
   public static explicit operator SqlBoolean( SqlDouble x);  
   public static explicit operator SqlBoolean( SqlInt16 x);  
   public static explicit operator SqlBoolean( SqlInt32 x);  
   public static explicit operator SqlBoolean( SqlInt64 x);  
   public static explicit operator SqlBoolean( SqlMoney x);  
   public static explicit operator SqlBoolean( SqlSingle x);  
   public static explicit operator SqlBoolean( SqlString x);  
   public static implicit operator SqlBoolean( bool 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 SqlByte ToSqlByte(  );  
   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 SqlBoolean(INullable, System.IComparable)

Returned By

Multiple types

    [ Team LiB ] Previous Section Next Section