SqlBytes 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public ref class SqlBytes sealed : System::Data::SqlTypes::INullable, System::Runtime::Serialization::ISerializable, System::Xml::Serialization::IXmlSerializable
public ref class SqlBytes sealed : System::Data::SqlTypes::INullable
public sealed class SqlBytes : System.Data.SqlTypes.INullable, System.Runtime.Serialization.ISerializable, System.Xml.Serialization.IXmlSerializable
public sealed class SqlBytes : System.Data.SqlTypes.INullable
[System.Serializable]
public sealed class SqlBytes : System.Data.SqlTypes.INullable, System.Runtime.Serialization.ISerializable, System.Xml.Serialization.IXmlSerializable
type SqlBytes = class
interface INullable
interface ISerializable
interface IXmlSerializable
type SqlBytes = class
interface INullable
[<System.Serializable>]
type SqlBytes = class
interface INullable
interface IXmlSerializable
interface ISerializable
Public NotInheritable Class SqlBytes
Implements INullable, ISerializable, IXmlSerializable
Public NotInheritable Class SqlBytes
Implements INullable
- 继承
-
SqlBytes
- 属性
- 实现
构造函数
| SqlBytes() |
初始化 SqlBytes 类的新实例。 |
| SqlBytes(Byte[]) |
根据指定的字节数组初始化 SqlBytes 类的新实例。 |
| SqlBytes(SqlBinary) | |
| SqlBytes(Stream) |
属性
| Buffer |
返回一个对内部缓冲区的引用。 |
| IsNull |
获取一个布尔值,该值指示此 SqlBytes 是否为 null。 |
| Item[Int64] |
获取或设置指定索引处的 SqlBytes 实例。 |
| Length |
获取 SqlBytes 实例中包含的值的长度。 |
| MaxLength |
获取此 SqlBytes 的内部缓冲区的值的最大长度。 |
| Null |
获取此 SqlBytes 的 null 实例。 |
| Storage |
返回有关此 SqlBytes 实例的存储状态的信息。 |
| Stream |
将此 SqlBytes 的数据作为流进行获取或设置。 |
| Value |
返回此 SqlBytes 保存的值的托管副本。 |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。 (继承自 Object) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| GetXsdType(XmlSchemaSet) |
返回指定的 XmlSchemaSet 的 XML 架构定义语言 (XSD)。 |
| MemberwiseClone() |
创建当前 Object 的浅表副本。 (继承自 Object) |
| Read(Int64, Byte[], Int32, Int32) |
将此 SqlBytes 实例中的字节复制到传入缓冲区中并返回复制的字节数。 |
| SetLength(Int64) |
设置此 SqlBytes 实例的长度。 |
| SetNull() |
将此 SqlBytes 实例设置为 null。 |
| ToSqlBinary() | |
| ToString() |
返回表示当前对象的字符串。 (继承自 Object) |
| Write(Int64, Byte[], Int32, Int32) |
将传入缓冲区中的字节复制到此 SqlBytes 实例中。 |
运算符
| Explicit(SqlBinary to SqlBytes) | |
| Explicit(SqlBytes to SqlBinary) |
显式接口实现
| ISerializable.GetObjectData(SerializationInfo, StreamingContext) |
获取序列化信息以及包含重新实例化此 SqlBytes 实例所需的所有数据。 |
| IXmlSerializable.GetSchema() |
此成员支持 .NET Framework 结构,不能在代码中直接使用。 |
| IXmlSerializable.ReadXml(XmlReader) |
此成员支持 .NET Framework 结构,不能在代码中直接使用。 |
| IXmlSerializable.WriteXml(XmlWriter) |
此成员支持 .NET Framework 结构,不能在代码中直接使用。 |