Пример #1
0
 /// <summary>
 /// Create or update an Azure Cosmos DB MongoDB Collection
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// Cosmos DB database account name.
 /// </param>
 /// <param name='databaseName'>
 /// Cosmos DB database name.
 /// </param>
 /// <param name='collectionName'>
 /// Cosmos DB collection name.
 /// </param>
 /// <param name='createUpdateMongoDBCollectionParameters'>
 /// The parameters to provide for the current MongoDB Collection.
 /// </param>
 public static MongoDBCollectionGetResults CreateUpdateMongoDBCollection(this IMongoDBResourcesOperations operations, string resourceGroupName, string accountName, string databaseName, string collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters)
 {
     return(operations.CreateUpdateMongoDBCollectionAsync(resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters).GetAwaiter().GetResult());
 }