Binary 类

定义

表示不可变的二进制数据块。Represents an immutable block of binary data.

public ref class Binary sealed : IEquatable<System::Data::Linq::Binary ^>
[System.Runtime.Serialization.DataContract]
[System.Serializable]
public sealed class Binary : IEquatable<System.Data.Linq.Binary>
type Binary = class
    interface IEquatable<Binary>
Public NotInheritable Class Binary
Implements IEquatable(Of Binary)
继承
Binary
属性
实现

构造函数

Binary(Byte[])

初始化 Binary 类的新实例。Initializes a new instance of the Binary class.

属性

Length

获取二进制对象的长度。Gets the length of the binary object.

方法

Equals(Binary)

确定两个二进制对象是否相等。Determines whether two binary objects are equal.

Equals(Object)

确定指定的 Object 是否等同于当前的 ObjectDetermines whether the specified Object is equal to the current Object.

GetHashCode()

用作特定类型的哈希函数。Serves as a hash function for a particular type.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToArray()

返回表示当前二进制对象的字节数组。Returns an array of bytes that represents the current binary object.

ToString()

返回表示当前二进制对象的 StringReturns a String that represents the current binary object.

运算符

Equality(Binary, Binary)

描述两个二进制对象之间的相等关系。Describes the equality relationship between two binary objects.

Implicit(Byte[] to Binary)

允许用某种编程语言将字节数组隐式地强制转换为 Binary 类型。Enables arrays of bytes to be implicitly coerced to the Binary type in a programming language.

Inequality(Binary, Binary)

描述两个二进制对象之间的不等关系。Describes the inequality relationship between two binary objects.

适用于