PartitionKeyValue StructureAliyun Open Services SDK for .NET
表示分片键的值。

Namespace: Aliyun.OpenServices.OpenTableService
Assembly: Aliyun.OpenServices (in Aliyun.OpenServices.dll) Version: 1.0.5290.21916
Syntax

public struct PartitionKeyValue

The PartitionKeyValue type exposes the following members.

Methods

  NameDescription
Public methodEquals
比较是否与另一实例相等。
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
获取对象的哈希值。
(Overrides ValueTypeGetHashCode.)
Public methodGetType
获取当前实例的 Type
(Inherited from Object.)
Public methodToString
获取值的字符串表示。
(Overrides ValueTypeToString.)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
相等操作符。
Public operatorStatic member(PartitionKeyValue to String)
显式转换操作符,将PartitionKeyValue对象转换为String对象。
Public operatorStatic member(PartitionKeyValue to Int64)
显式转换操作符,将PartitionKeyValue对象转换为Int64对象。
Public operatorStatic member(Int64 to PartitionKeyValue)
隐式转换操作符,将Int64对象转换为PartitionKeyValue对象。
Public operatorStatic member(String to PartitionKeyValue)
隐式转换操作符,将String对象转换为PartitionKeyValue对象。
Public operatorStatic memberInequality
不相等操作符。
Top
Properties

  NameDescription
Public propertyValueType
获取值的数据类型。
Top
Remarks

此类型对象可以直接与StringInt64类型相互转换。

可以将StringInt64对象隐式地转换为PartitionKeyValue类型的对象, 转换后的对象的ValueType属性为相对应的PartitionKeyType枚举的值。 例如,将一个Int64对象转换为PartitionKeyValue,则转换后对象的ValueType等于Integer

可以将PartitionKeyValue显式地转换为StringInt64。 但需要根据ValueType指定的类型进行转换,否则会抛出InvalidCastException的异常。

调用ToString方法可以得到值的字符串表示形式。

See Also

Reference