15 instantiations of SqlBinary
System.Data (15)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
3150return new SqlBinary( buffer );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
624return new SqlBinary(Convert.FromBase64String((string)value));
fx\src\data\System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
92SqlBinary newValue = new SqlBinary();
fx\src\data\System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
91SqlBinary newValue = new SqlBinary();
fx\src\data\System\Data\Sql\SqlMetaData.cs (2)
909return new SqlBinary(rgbNewValue); 927value = new SqlBinary(rgbNewValue);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
501sqlVal = new SqlBinary((byte[])comVal);
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
5191value.SqlBinary = new SqlBinary(unencryptedBytes, true); // doesn't copy the byte array 5362value.SqlBinary = new SqlBinary(b, true); // doesn't copy the byte array 5622value.SqlBinary = new SqlBinary(b, true); // doesn't copy the byte array
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (4)
139return new SqlBinary(x); 182return new SqlBinary(rgbResult); 242return x.IsNull ? SqlBinary.Null : new SqlBinary(x.ToByteArray()); 524public static readonly SqlBinary Null = new SqlBinary(true);
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (1)
442 return IsNull ? SqlBinary.Null : new SqlBinary(Value);
167 references to SqlBinary
System.Data (167)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
75SqlBinary GetSqlBinary( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (2)
79void SetSqlBinary( int ordinal, SqlBinary value ); 82void SetSqlBinary( int ordinal, SqlBinary value, int offset );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
114ht.Add( typeof( SqlBinary ), ExtendedClrTypeCode.SqlBinary ); 217else if (value.GetType() == typeof( SqlBinary ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (3)
362public virtual SqlBinary GetSqlBinary( int ordinal ) { 725public virtual void SetSqlBinary( int ordinal, SqlBinary value ) 735public virtual void SetSqlBinary( int ordinal, SqlBinary value, int offset ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (3)
420public virtual SqlBinary GetSqlBinary( int ordinal ) { 783public virtual void SetSqlBinary( int ordinal, SqlBinary value ) 793public virtual void SetSqlBinary( int ordinal, SqlBinary value, int offset ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
273public virtual SqlBinary GetSqlBinary(int ordinal) { 553public virtual void SetSqlBinary(int ordinal, SqlBinary value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (17)
89SqlBinary value = (SqlBinary) obj; 307internal static SqlBinary GetSqlBinary( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 310return SqlBinary.Null; 318return (SqlBinary) result; 373SqlBinary binaryVal = (SqlBinary) obj; 1085SqlBinary.Null, // SqlDbType.Binary 1091SqlBinary.Null, // SqlDbType.Image 1103SqlBinary.Null, // SqlDbType.Timestamp 1105SqlBinary.Null, // SqlDbType.VarBinary 1144targetBuffer.SqlBinary = SqlBinary.Null; 1458internal static void SetSqlBinary( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlBinary value ) { 1616case ExtendedClrTypeCode.SqlBinary: SetSqlBinary_LengthChecked( sink, setters, ordinal, metaData, (SqlBinary) value, offset ); break; 2485private static void SetSqlBinary_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlBinary value, int offset ) { 3146private static SqlBinary GetSqlBinary_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) { 3377private static void SetSqlBinary_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlBinary value, int offset, int length ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
52typeof(SqlBinary),
fx\src\data\System\Data\Common\DataStorage.cs (1)
99typeof(SqlBinary),
fx\src\data\System\Data\Common\SQLConvert.cs (5)
347public static SqlBinary ConvertToSqlBinary(object value) { 350return SqlBinary.Null; 357return (SqlBinary) value; 361throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlBinary)); 713return Convert.ToBase64String(((SqlBinary)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQLBinaryStorage.cs (15)
22private SqlBinary[] values; 25: base(column, typeof(SqlBinary), SqlBinary.Null, SqlBinary.Null, StorageType.SqlBinary) { 47throw ExprException.Overflow(typeof(SqlBinary)); 57return values[recordNo].CompareTo((SqlBinary)value); 84SqlBinary[] newValues = new SqlBinary[capacity]; 92SqlBinary newValue = new SqlBinary(); 101return ((SqlBinary)tmp); 106Debug.Assert((value.GetType() == typeof(SqlBinary)), "wrong input type"); 117return new SqlBinary[recordCount]; 121SqlBinary[] typedStore = (SqlBinary[]) store; 127values = (SqlBinary[]) store;
fx\src\data\System\Data\Common\SQLTypes\SQLBytesStorage.cs (2)
91SqlBinary newValue = new SqlBinary(); 100return (new SqlBytes((SqlBinary)tmp));
fx\src\data\System\Data\Sql\SqlMetaData.cs (7)
899public SqlBinary Adjust(SqlBinary value) { 1076else if (dataType == typeof(SqlBinary)) 1077value = this.Adjust((SqlBinary)value); 1190else if (dataType == typeof(SqlBinary)) 1193SqlBinary sb = ((SqlBinary) value);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (3)
427internal SqlBinary SqlBinary { 430return (SqlBinary)_object; 432return (SqlBinary)this.SqlValue; // anything else we haven't thought of goes through boxing.
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
2289virtual public SqlBinary GetSqlBinary(int i) { 2301SqlBinary data = _data[i].SqlBinary;
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
728public override SqlBinary GetSqlBinary(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (11)
304else if (dataType == typeof(SqlBinary)) 392else if (sqlType == typeof(SqlBinary)) return SqlBinary.Null; 436else if (sqlVal is SqlBinary) 437comVal = ((SqlBinary)sqlVal).Value; 718(255, 255, -1, false, false, false, TdsEnums.SQLBIGBINARY, TdsEnums.SQLBIGBINARY, MetaTypeName.BINARY, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.Binary, DbType.Binary, 2); 722(255, 255, -1, false, false, false, TdsEnums.SQLBIGBINARY, TdsEnums.SQLBIGBINARY, MetaTypeName.TIMESTAMP, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.Timestamp, DbType.Binary, 2); 725(255, 255, -1, false, false, false, TdsEnums.SQLBIGVARBINARY, TdsEnums.SQLBIGVARBINARY, MetaTypeName.VARBINARY, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.VarBinary, DbType.Binary, 2); 728(255, 255, -1, false, true, true, TdsEnums.SQLBIGVARBINARY, TdsEnums.SQLBIGVARBINARY, MetaTypeName.VARBINARY, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.VarBinary, DbType.Binary, 2); 734(255, 255, -1, false, false, false, TdsEnums.SQLVARBINARY, TdsEnums.SQLBIGBINARY, ADP.StrEmpty, typeof(System.Byte[]), typeof(SqlBinary), TdsEnums.SmallVarBinary, DbType.Binary, 2); 737(255, 255, -1, false, true, false, TdsEnums.SQLIMAGE, TdsEnums.SQLIMAGE, MetaTypeName.IMAGE, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.Image, DbType.Binary, 0);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (5)
1669if (value is SqlBinary) { 1670return ((SqlBinary)value).Length; 1704if (value is SqlBinary) { 1705if (((SqlBinary) value).IsNull) // MDAC #79648 1708return ((SqlBinary) value).Length;
fx\src\data\System\Data\SqlClient\TdsParser.cs (7)
4804nullVal.SqlBinary = SqlBinary.Null; 9416actualLengthInBytes = (isSqlType) ? ((SqlBinary)value).Length : ((byte[])value).Length; 9537ccb = (isSqlType) ? ((SqlBinary)value).Length : ((byte[])value).Length; 9975if (value is SqlBinary) { 9976return stateObj.WriteByteArray(((SqlBinary)value).Value, actualLength, offset, canAccumulate:false); 10939if (value is SqlBinary) { 10940Buffer.BlockCopy(((SqlBinary)value).Value, offset, b, 0, actualLength);
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (67)
49/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlBinary'/> class with a binary object to be stored. 64/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlBinary'/> class with a binary object to be stored. This constructor will not copy the value. 79/// Gets whether or not <see cref='System.Data.SqlTypes.SqlBinary.Value'/> is null. 119/// Gets the length in bytes of <see cref='System.Data.SqlTypes.SqlBinary.Value'/>. 135/// Converts a binary object to a <see cref='System.Data.SqlTypes.SqlBinary'/>. 138public static implicit operator SqlBinary(byte[] x) { 146/// Converts a <see cref='System.Data.SqlTypes.SqlBinary'/> to a binary object. 149public static explicit operator byte[](SqlBinary x) { 155/// Returns a string describing a <see cref='System.Data.SqlTypes.SqlBinary'/> object. 170/// Adds two instances of <see cref='System.Data.SqlTypes.SqlBinary'/> together. 174public static SqlBinary operator +(SqlBinary x, SqlBinary y) { 236/// Converts a <see cref='System.Data.SqlTypes.SqlGuid'/> to a <see cref='System.Data.SqlTypes.SqlBinary'/> 241public static explicit operator SqlBinary(SqlGuid x) { 242return x.IsNull ? SqlBinary.Null : new SqlBinary(x.ToByteArray()); 250/// Compares two instances of <see cref='System.Data.SqlTypes.SqlBinary'/> for 254public static SqlBoolean operator==(SqlBinary x, SqlBinary y) { 263/// Compares two instances of <see cref='System.Data.SqlTypes.SqlBinary'/> 267public static SqlBoolean operator!=(SqlBinary x, SqlBinary y) { 273/// Compares the first <see cref='System.Data.SqlTypes.SqlBinary'/> for being less than the 274/// second <see cref='System.Data.SqlTypes.SqlBinary'/>. 277public static SqlBoolean operator<(SqlBinary x, SqlBinary y) { 286/// Compares the first <see cref='System.Data.SqlTypes.SqlBinary'/> for being greater than the second <see cref='System.Data.SqlTypes.SqlBinary'/>. 289public static SqlBoolean operator>(SqlBinary x, SqlBinary y) { 298/// Compares the first <see cref='System.Data.SqlTypes.SqlBinary'/> for being less than or equal to the second <see cref='System.Data.SqlTypes.SqlBinary'/>. 301public static SqlBoolean operator<=(SqlBinary x, SqlBinary y) { 311/// Compares the first <see cref='System.Data.SqlTypes.SqlBinary'/> for being greater than or equal the second <see cref='System.Data.SqlTypes.SqlBinary'/>. 314public static SqlBoolean operator>=(SqlBinary x, SqlBinary y) { 327public static SqlBinary Add(SqlBinary x, SqlBinary y) { 331public static SqlBinary Concat(SqlBinary x, SqlBinary y) { 336public static SqlBoolean Equals(SqlBinary x, SqlBinary y) { 341public static SqlBoolean NotEquals(SqlBinary x, SqlBinary y) { 346public static SqlBoolean LessThan(SqlBinary x, SqlBinary y) { 351public static SqlBoolean GreaterThan(SqlBinary x, SqlBinary y) { 356public static SqlBoolean LessThanOrEqual(SqlBinary x, SqlBinary y) { 361public static SqlBoolean GreaterThanOrEqual(SqlBinary x, SqlBinary y) { 381if (value is SqlBinary) { 382SqlBinary i = (SqlBinary)value; 386throw ADP.WrongType(value.GetType(), typeof(SqlBinary)); 389public int CompareTo(SqlBinary value) { 407if (!(value is SqlBinary)) { 411SqlBinary i = (SqlBinary)value; 520/// the <see cref='System.Data.SqlTypes.SqlBinary.Value'/> property of an 521/// instance of the <see cref='System.Data.SqlTypes.SqlBinary'/> class. 524public static readonly SqlBinary Null = new SqlBinary(true);
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (5)
128 public SqlBytes(SqlBinary value) : this(value.IsNull ? (byte[])null : value.Value) { 441 public SqlBinary ToSqlBinary() { 442 return IsNull ? SqlBinary.Null : new SqlBinary(Value); 450 public static explicit operator SqlBinary(SqlBytes value) { 455 public static explicit operator SqlBytes(SqlBinary value) {
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (3)
199public static explicit operator SqlGuid(SqlBinary x) { 294public SqlBinary ToSqlBinary() { 295return (SqlBinary)this;
fx\src\data\System\Data\SQLTypes\SQLString.cs (1)
994return SqlBinary.HashByteArray(rgbSortKey, rgbSortKey.Length);
fx\src\data\System\Data\xmlsaver.cs (1)
242if (type == typeof(SqlBinary))