Share via


ArmDataMigrationModelFactory.MongoDBShardKeyInfo Method

Definition

Initializes a new instance of MongoDBShardKeyInfo.

public static Azure.ResourceManager.DataMigration.Models.MongoDBShardKeyInfo MongoDBShardKeyInfo (System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataMigration.Models.MongoDBShardKeyField> fields = default, bool isUnique = false);
static member MongoDBShardKeyInfo : seq<Azure.ResourceManager.DataMigration.Models.MongoDBShardKeyField> * bool -> Azure.ResourceManager.DataMigration.Models.MongoDBShardKeyInfo
Public Shared Function MongoDBShardKeyInfo (Optional fields As IEnumerable(Of MongoDBShardKeyField) = Nothing, Optional isUnique As Boolean = false) As MongoDBShardKeyInfo

Parameters

fields
IEnumerable<MongoDBShardKeyField>

The fields within the shard key.

isUnique
Boolean

Whether the shard key is unique.

Returns

A new MongoDBShardKeyInfo instance for mocking.

Applies to