Export (0) Print
Expand All

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.

  NameDescription
Public methodSupported by the XNA FrameworkSqlBytes()Initializes a new instance of the SqlBytes class.
Public methodSupported by the XNA FrameworkSqlBytes(Byte[])Initializes a new instance of the SqlBytes class based on the specified byte array.
Public methodSupported by the XNA FrameworkSqlBytes(SqlBinary)Initializes a new instance of the SqlBytes class based on the specified SqlBinary value.
Public methodSupported by the XNA FrameworkSqlBytes(Stream)Initializes a new instance of the SqlBytes class based on the specified Stream value.
Top

  NameDescription
Public propertySupported by the XNA FrameworkBufferReturns a reference to the internal buffer.
Public propertySupported by the XNA FrameworkIsNullGets a Boolean value that indicates whether this SqlBytes is null.
Public propertySupported by the XNA FrameworkItemGets or sets the SqlBytes instance at the specified index.
Public propertySupported by the XNA FrameworkLengthGets the length of the value that is contained in the SqlBytes instance.
Public propertySupported by the XNA FrameworkMaxLengthGets the maximum length of the value of the internal buffer of this SqlBytes.
Public propertyStatic memberSupported by the XNA FrameworkNullReturns a null instance of this SqlBytes.
Public propertySupported by the XNA FrameworkStorageReturns information about the storage state of this SqlBytes instance.
Public propertySupported by the XNA FrameworkStreamGets or sets the data of this SqlBytes as a stream.
Public propertySupported by the XNA FrameworkValueReturns a managed copy of the value held by this SqlBytes.
Top

  NameDescription
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberSupported by the XNA FrameworkGetXsdTypeReturns the XML Schema definition language (XSD) of the specified XmlSchemaSet.
Public methodSupported by the XNA FrameworkReadCopies bytes from this SqlBytes instance to the passed-in buffer and returns the number of copied bytes.
Public methodSupported by the XNA FrameworkSetLengthSets the length of this SqlBytes instance.
Public methodSupported by the XNA FrameworkSetNullSets this SqlBytes instance to null.
Public methodSupported by the XNA FrameworkToSqlBinaryConstructs and returns a SqlBinary from this SqlBytes instance.
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkWriteCopies bytes from the passed-in buffer to this SqlBytes instance.
Top

  NameDescription
Public operatorStatic memberSupported by the XNA FrameworkExplicit(SqlBinary to SqlBytes)Converts a SqlBinary structure to a SqlBytes structure.
Public operatorStatic memberSupported by the XNA FrameworkExplicit(SqlBytes to SqlBinary)Converts a SqlBytes structure to a SqlBinary structure.
Top

  NameDescription
Explicit interface implemetationPrivate methodISerializable.GetObjectDataGets serialization information with all the data needed to reinstantiate this SqlBytes instance.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.GetSchemaThis member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.ReadXmlThis member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.WriteXmlThis member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Top

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft