你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ShardKey 类

定义

public sealed class ShardKey : IComparable<Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardKey>, IEquatable<Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardKey>
type ShardKey = class
    interface IComparable<ShardKey>
    interface IEquatable<ShardKey>
Public NotInheritable Class ShardKey
Implements IComparable(Of ShardKey), IEquatable(Of ShardKey)
继承
ShardKey
实现

构造函数

ShardKey(Byte[])
ShardKey(DateTime)
ShardKey(DateTimeOffset)
ShardKey(Guid)
ShardKey(Int32)
ShardKey(Int64)
ShardKey(Object)
ShardKey(ShardKeyType, Object)
ShardKey(TimeSpan)

属性

DataType
HasValue
IsMax
IsMin
KeyType
MaxBinary
MaxDateTime
MaxDateTimeOffset
MaxGuid
MaxInt32
MaxInt64
MaxTimeSpan
MinBinary
MinDateTime
MinDateTimeOffset
MinGuid
MinInt32
MinInt64
MinTimeSpan
RawValue
Value

方法

CompareTo(ShardKey)
DetectShardKeyType(Object)
Equals(Object)
Equals(ShardKey)
FromRawValue(ShardKeyType, Byte[])
GetHashCode()
GetValue<T>()
IsSupportedType(Type)
Max(ShardKey, ShardKey)
Min(ShardKey, ShardKey)
ShardKeyTypeFromType(Type)
ToString()
TypeFromShardKeyType(ShardKeyType)

运算符

Equality(ShardKey, ShardKey)
GreaterThan(ShardKey, ShardKey)
GreaterThanOrEqual(ShardKey, ShardKey)
Inequality(ShardKey, ShardKey)
LessThan(ShardKey, ShardKey)
LessThanOrEqual(ShardKey, ShardKey)

适用于