This topic has not yet been rated - Rate this topic

SqlBytes Class

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

System.Object
  System.Data.SqlTypes.SqlBytes

Namespace:  System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)
[SerializableAttribute]
public sealed class SqlBytes : INullable, 
	IXmlSerializable, ISerializable

The SqlBytes type exposes the following members.

  Name Description
Public method Supported by the XNA Framework SqlBytes() Initializes a new instance of the SqlBytes class.
Public method Supported by the XNA Framework SqlBytes(Byte[]) Initializes a new instance of the SqlBytes class based on the specified byte array.
Public method Supported by the XNA Framework SqlBytes(SqlBinary) Initializes a new instance of the SqlBytes class based on the specified SqlBinary value.
Public method Supported by the XNA Framework SqlBytes(Stream) Initializes a new instance of the SqlBytes class based on the specified Stream value.
Top
  Name Description
Public property Supported by the XNA Framework Buffer Returns a reference to the internal buffer.
Public property Supported by the XNA Framework IsNull Gets a Boolean value that indicates whether this SqlBytes is null.
Public property Supported by the XNA Framework Item Gets or sets the SqlBytes instance at the specified index.
Public property Supported by the XNA Framework Length Gets the length of the value that is contained in the SqlBytes instance.
Public property Supported by the XNA Framework MaxLength Gets the maximum length of the value of the internal buffer of this SqlBytes.
Public property Static member Supported by the XNA Framework Null Returns a null instance of this SqlBytes.
Public property Supported by the XNA Framework Storage Returns information about the storage state of this SqlBytes instance.
Public property Supported by the XNA Framework Stream Gets or sets the data of this SqlBytes as a stream.
Public property Supported by the XNA Framework Value Returns a managed copy of the value held by this SqlBytes.
Top
  Name Description
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member Supported by the XNA Framework GetXsdType Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.
Protected method Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the XNA Framework Read Copies bytes from this SqlBytes instance to the passed-in buffer and returns the number of copied bytes.
Public method Supported by the XNA Framework SetLength Sets the length of this SqlBytes instance.
Public method Supported by the XNA Framework SetNull Sets this SqlBytes instance to null.
Public method Supported by the XNA Framework ToSqlBinary Constructs and returns a SqlBinary from this SqlBytes instance.
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Supported by the XNA Framework Write Copies bytes from the passed-in buffer to this SqlBytes instance.
Top
  Name Description
Public operator Static member Supported by the XNA Framework Explicit(SqlBinary to SqlBytes) Converts a SqlBinary structure to a SqlBytes structure.
Public operator Static member Supported by the XNA Framework Explicit(SqlBytes to SqlBinary) Converts a SqlBytes structure to a SqlBinary structure.
Top
  Name Description
Explicit interface implemetation Private method ISerializable.GetObjectData Gets serialization information with all the data needed to reinstantiate this SqlBytes instance.
Explicit interface implemetation Private method Supported by the XNA Framework IXmlSerializable.GetSchema This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method Supported by the XNA Framework IXmlSerializable.ReadXml This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method Supported by the XNA Framework IXmlSerializable.WriteXml This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ