共用方式為


ArmCosmosDBModelFactory.ExtendedMongoDBCollectionResourceInfo Method

Definition

Overloads

ExtendedMongoDBCollectionResourceInfo(String, IDictionary<String, String>, IEnumerable<MongoDBIndex>, Nullable<Int32>, String, Nullable<Single>, Nullable<ETag>)
ExtendedMongoDBCollectionResourceInfo(String, IDictionary<String, String>, IEnumerable<MongoDBIndex>, Nullable<Int32>, ResourceRestoreParameters, Nullable<CosmosDBAccountCreateMode>, String, Nullable<Single>, Nullable<ETag>)

Initializes a new instance of ExtendedMongoDBCollectionResourceInfo.

ExtendedMongoDBCollectionResourceInfo(String, IDictionary<String, String>, IEnumerable<MongoDBIndex>, Nullable<Int32>, String, Nullable<Single>, Nullable<ETag>)

Source:
ArmCosmosDBModelFactory.cs
public static Azure.ResourceManager.CosmosDB.Models.ExtendedMongoDBCollectionResourceInfo ExtendedMongoDBCollectionResourceInfo (string collectionName = default, System.Collections.Generic.IDictionary<string,string> shardKey = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.MongoDBIndex> indexes = default, int? analyticalStorageTtl = default, string rid = default, float? timestamp = default, Azure.ETag? etag = default);
static member ExtendedMongoDBCollectionResourceInfo : string * System.Collections.Generic.IDictionary<string, string> * seq<Azure.ResourceManager.CosmosDB.Models.MongoDBIndex> * Nullable<int> * string * Nullable<single> * Nullable<Azure.ETag> -> Azure.ResourceManager.CosmosDB.Models.ExtendedMongoDBCollectionResourceInfo
Public Shared Function ExtendedMongoDBCollectionResourceInfo (Optional collectionName As String = Nothing, Optional shardKey As IDictionary(Of String, String) = Nothing, Optional indexes As IEnumerable(Of MongoDBIndex) = Nothing, Optional analyticalStorageTtl As Nullable(Of Integer) = Nothing, Optional rid As String = Nothing, Optional timestamp As Nullable(Of Single) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As ExtendedMongoDBCollectionResourceInfo

Parameters

collectionName
String
analyticalStorageTtl
Nullable<Int32>
rid
String
timestamp
Nullable<Single>
etag
Nullable<ETag>

Returns

Applies to

ExtendedMongoDBCollectionResourceInfo(String, IDictionary<String, String>, IEnumerable<MongoDBIndex>, Nullable<Int32>, ResourceRestoreParameters, Nullable<CosmosDBAccountCreateMode>, String, Nullable<Single>, Nullable<ETag>)

Source:
ArmCosmosDBModelFactory.cs

Initializes a new instance of ExtendedMongoDBCollectionResourceInfo.

public static Azure.ResourceManager.CosmosDB.Models.ExtendedMongoDBCollectionResourceInfo ExtendedMongoDBCollectionResourceInfo (string collectionName = default, System.Collections.Generic.IDictionary<string,string> shardKey = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.MongoDBIndex> indexes = default, int? analyticalStorageTtl = default, Azure.ResourceManager.CosmosDB.Models.ResourceRestoreParameters restoreParameters = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountCreateMode? createMode = default, string rid = default, float? timestamp = default, Azure.ETag? etag = default);
static member ExtendedMongoDBCollectionResourceInfo : string * System.Collections.Generic.IDictionary<string, string> * seq<Azure.ResourceManager.CosmosDB.Models.MongoDBIndex> * Nullable<int> * Azure.ResourceManager.CosmosDB.Models.ResourceRestoreParameters * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountCreateMode> * string * Nullable<single> * Nullable<Azure.ETag> -> Azure.ResourceManager.CosmosDB.Models.ExtendedMongoDBCollectionResourceInfo
Public Shared Function ExtendedMongoDBCollectionResourceInfo (Optional collectionName As String = Nothing, Optional shardKey As IDictionary(Of String, String) = Nothing, Optional indexes As IEnumerable(Of MongoDBIndex) = Nothing, Optional analyticalStorageTtl As Nullable(Of Integer) = Nothing, Optional restoreParameters As ResourceRestoreParameters = Nothing, Optional createMode As Nullable(Of CosmosDBAccountCreateMode) = Nothing, Optional rid As String = Nothing, Optional timestamp As Nullable(Of Single) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As ExtendedMongoDBCollectionResourceInfo

Parameters

collectionName
String

Name of the Cosmos DB MongoDB collection.

shardKey
IDictionary<String,String>

A key-value pair of shard keys to be applied for the request.

indexes
IEnumerable<MongoDBIndex>

List of index keys.

analyticalStorageTtl
Nullable<Int32>

Analytical TTL.

restoreParameters
ResourceRestoreParameters

Parameters to indicate the information about the restore.

createMode
Nullable<CosmosDBAccountCreateMode>

Enum to indicate the mode of resource creation.

rid
String

A system generated property. A unique identifier.

timestamp
Nullable<Single>

A system generated property that denotes the last updated timestamp of the resource.

etag
Nullable<ETag>

A system generated property representing the resource etag required for optimistic concurrency control.

Returns

A new ExtendedMongoDBCollectionResourceInfo instance for mocking.

Applies to