IndexKeysDefinitionBuilder<TDocument>.Hashed Method (FieldDefinition<TDocument>) |
Creates a hashed index key definition.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntaxpublic IndexKeysDefinition<TDocument> Hashed(
FieldDefinition<TDocument> field
)
Public Function Hashed (
field As FieldDefinition(Of TDocument)
) As IndexKeysDefinition(Of TDocument)
member Hashed :
field : FieldDefinition<'TDocument> -> IndexKeysDefinition<'TDocument>
Parameters
- field
- Type: MongoDB.Driver.FieldDefinition<TDocument>
The field.
Return Value
Type:
IndexKeysDefinition<TDocument>A hashed index key definition.
See Also