SqlBytes Class
TOC
Collapse the table of content
Expand the table of content

SqlBytes Class

 

Represents a mutable reference type that wraps either a Buffer or a Stream.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

System.Object
  System.Data.SqlTypes.SqlBytes

[SerializableAttribute]
public sealed class SqlBytes : INullable, IXmlSerializable, ISerializable

NameDescription
System_CAPS_pubmethodSqlBytes()

Initializes a new instance of the SqlBytes class.

System_CAPS_pubmethodSqlBytes(Byte[])

Initializes a new instance of the SqlBytes class based on the specified byte array.

System_CAPS_pubmethodSqlBytes(SqlBinary)

Initializes a new instance of the SqlBytes class based on the specified SqlBinary value.

System_CAPS_pubmethodSqlBytes(Stream)

Initializes a new instance of the SqlBytes class based on the specified Stream value.

NameDescription
System_CAPS_pubpropertyBuffer

Returns a reference to the internal buffer.

System_CAPS_pubpropertyIsNull

Gets a Boolean value that indicates whether this SqlBytes is null.

System_CAPS_pubpropertyItem[Int64]

Gets or sets the SqlBytes instance at the specified index.

System_CAPS_pubpropertyLength

Gets the length of the value that is contained in the SqlBytes instance.

System_CAPS_pubpropertyMaxLength

Gets the maximum length of the value of the internal buffer of this SqlBytes.

System_CAPS_pubpropertySystem_CAPS_staticNull

Returns a null instance of this SqlBytes.

System_CAPS_pubpropertyStorage

Returns information about the storage state of this SqlBytes instance.

System_CAPS_pubpropertyStream

Gets or sets the data of this SqlBytes as a stream.

System_CAPS_pubpropertyValue

Returns a managed copy of the value held by this SqlBytes.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetXsdType(XmlSchemaSet)

Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.

System_CAPS_pubmethodRead(Int64, Byte[], Int32, Int32)

Copies bytes from this SqlBytes instance to the passed-in buffer and returns the number of copied bytes.

System_CAPS_pubmethodSetLength(Int64)

Sets the length of this SqlBytes instance.

System_CAPS_pubmethodSetNull()

Sets this SqlBytes instance to null.

System_CAPS_pubmethodToSqlBinary()

Constructs and returns a SqlBinary from this SqlBytes instance.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWrite(Int64, Byte[], Int32, Int32)

Copies bytes from the passed-in buffer to this SqlBytes instance.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticExplicit(SqlBinary to SqlBytes)

Converts a SqlBinary structure to a SqlBytes structure.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(SqlBytes to SqlBinary)

Converts a SqlBytes structure to a SqlBinary structure.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

Gets serialization information with all the data needed to reinstantiate this SqlBytes instance.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.GetSchema()

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.ReadXml(XmlReader)

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.WriteXml(XmlWriter)

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft