ArmDataMigrationModelFactory.MongoDBShardKeyInfo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET