Table of Contents

Interface IFeedResponse<T>

Namespace
Microsoft.Azure.Documents.Client
Assembly
Microsoft.Azure.Documents.Client.dll

Captures APIs for responses associated with feed methods (enumeration operations) in the Azure Cosmos DB service. Interface exposed for mocking purposes.

public interface IFeedResponse<T>

Type Parameters

T

The feed type.

Extension Methods

Properties

ActivityId

Gets the activity ID for the request in the Azure Cosmos DB service.

string ActivityId { get; }

Property Value

string

The activity ID for the request.

CollectionQuota

Gets the maximum quota for collection resources within the Azure Cosmos DB database account.

long CollectionQuota { get; }

Property Value

long

The maximum quota for the account.

CollectionSizeQuota

Maximum size of a collection in the Azure Cosmos DB database in kilobytes.

long CollectionSizeQuota { get; }

Property Value

long

Quota in kilobytes.

CollectionSizeUsage

Current size of a collection in the Azure Cosmos DB database in kilobytes.

long CollectionSizeUsage { get; }

Property Value

long

CollectionUsage

The current number of collection resources within the Azure Cosmos DB database account.

long CollectionUsage { get; }

Property Value

long

The number of collections.

ContentLocation

The content parent location in the Azure Cosmos DB database, for example, dbs/foo/colls/bar

string ContentLocation { get; }

Property Value

string

Count

Gets the number of items returned in the response associated with the feed operations for the Azure Cosmos DB service.

int Count { get; }

Property Value

int

Count of items in the response.

CurrentResourceQuotaUsage

Gets the current size of this entity in the Azure Cosmos DB service.

string CurrentResourceQuotaUsage { get; }

Property Value

string

The current size for this entity. Measured in kilobytes for document resources and in counts for other resources.

DatabaseQuota

Gets the maximum quota for database resources within the Azure Cosmos DB database account.

long DatabaseQuota { get; }

Property Value

long

The maximum quota for the account.

DatabaseUsage

The current number of database resources within the Azure Cosmos DB database account.

long DatabaseUsage { get; }

Property Value

long

The number of databases.

MaxResourceQuota

Gets the maximum size limit for this entity in the Azure Cosmos DB service.

string MaxResourceQuota { get; }

Property Value

string

The maximum size limit for this entity. Measured in kilobytes for document resources and in counts for other resources.

PermissionQuota

Gets the maximum quota for permission resources within the Azure Cosmos DB database account.

long PermissionQuota { get; }

Property Value

long

The maximum quota for the account.

PermissionUsage

The current number of permission resources within the Azure Cosmos DB database account.

long PermissionUsage { get; }

Property Value

long

The number of permissions.

RequestCharge

Gets the request charge for the Azure Cosmos DB database account for this request

double RequestCharge { get; }

Property Value

double

The request charge measured in reqest units.

ResponseContinuation

Gets the continuation token to be used for continuing enumeration in the Azure Cosmos DB service.

string ResponseContinuation { get; }

Property Value

string

The continuation token to be used for continuing enumeration.

ResponseHeaders

Gets the response headers.

NameValueCollection ResponseHeaders { get; }

Property Value

NameValueCollection

The response headers.

SessionToken

Gets the session token for use in sesssion consistency reads in the Azure Cosmos DB service.

string SessionToken { get; }

Property Value

string

The session token for use in session consistency.

StoredProceduresQuota

Gets the maximum quota of stored procedures for a collection in the Azure Cosmos DB service.

long StoredProceduresQuota { get; }

Property Value

long

The maximum quota.

StoredProceduresUsage

The current number of stored procedures for a collection in the Azure Cosmos DB service.

long StoredProceduresUsage { get; }

Property Value

long

Current number of stored procedures.

TriggersQuota

Gets the maximum quota of triggers for a collection in the Azure Cosmos DB service.

long TriggersQuota { get; }

Property Value

long

The maximum quota.

TriggersUsage

The current number of triggers for a collection in the Azure Cosmos DB service.

long TriggersUsage { get; }

Property Value

long

Current number of triggers.

UserDefinedFunctionsQuota

Gets the maximum quota of user defined functions for a collection in the Azure Cosmos DB service.

long UserDefinedFunctionsQuota { get; }

Property Value

long

Maximum quota.

UserDefinedFunctionsUsage

The current number of user defined functions for a collection in the Azure Cosmos DB service.

long UserDefinedFunctionsUsage { get; }

Property Value

long

Current number of user defined functions.

UserQuota

Gets the maximum quota for user resources within the Azure Cosmos DB database account.

long UserQuota { get; }

Property Value

long

The maximum quota for the account.

UserUsage

The current number of user resources within the Azure Cosmos DB database account.

long UserUsage { get; }

Property Value

long

The number of users.

Methods

GetEnumerator()

Returns an enumerator that iterates through a collection in the Azure Cosmos DB service.

IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

An IEnumerator object that can be used to iterate through the collection.