다음을 통해 공유


ArmDataMigrationModelFactory.DataMigrationMongoDBShardKeyInfo Method

Definition

Initializes a new instance of DataMigrationMongoDBShardKeyInfo.

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

Parameters

fields
IEnumerable<DataMigrationMongoDBShardKeyField>

The fields within the shard key.

isUnique
Boolean

Whether the shard key is unique.

Returns

A new DataMigrationMongoDBShardKeyInfo instance for mocking.

Applies to