次の方法で共有


Index.Hash メソッド

定義

オーバーロード

Hash(DataType)

Azure Cosmos DB サービスに対して HashIndex 指定された DataType を持つ クラスのインスタンスを返します。

Hash(DataType, Int16)

指定した DataType と Azure Cosmos DB サービスの HashIndex 有効桁数を持つ クラスのインスタンスを返します。

Hash(DataType)

Azure Cosmos DB サービスに対して HashIndex 指定された DataType を持つ クラスのインスタンスを返します。

public static Microsoft.Azure.Documents.HashIndex Hash (Microsoft.Azure.Documents.DataType dataType);
static member Hash : Microsoft.Azure.Documents.DataType -> Microsoft.Azure.Documents.HashIndex
Public Shared Function Hash (dataType As DataType) As HashIndex

パラメーター

dataType
DataType

インデックス パス指定のターゲット データ型を指定します。

戻り値

型の HashIndex インスタンス。

DataType を渡す HashIndex インスタンスを作成する例を次に示します。

HashIndex hashIndex = Index.Hash(DataType.String);

こちらもご覧ください

適用対象

Hash(DataType, Int16)

指定した DataType と Azure Cosmos DB サービスの HashIndex 有効桁数を持つ クラスのインスタンスを返します。

public static Microsoft.Azure.Documents.HashIndex Hash (Microsoft.Azure.Documents.DataType dataType, short precision);
static member Hash : Microsoft.Azure.Documents.DataType * int16 -> Microsoft.Azure.Documents.HashIndex
Public Shared Function Hash (dataType As DataType, precision As Short) As HashIndex

パラメーター

dataType
DataType

インデックス パス指定のターゲット データ型を指定します。

precision
Int16

このインデックスに関連付けられているデータ型に使用する有効桁数を指定します。

戻り値

型の HashIndex インスタンス。

DataType と有効桁数を渡して HashIndex インスタンスを作成する例を次に示します。

HashIndex hashIndex = Index.Hash(DataType.String, 3);

こちらもご覧ください

適用対象