다음을 통해 공유


FeedResponse<T> Class

Definition

The user contract for the various feed responses that serialized the responses to a type. To follow the .NET standard for typed responses any exceptions should be thrown to the user.

public abstract class FeedResponse<T> : Microsoft.Azure.Cosmos.Response<System.Collections.Generic.IEnumerable<T>>, System.Collections.Generic.IEnumerable<T>
type FeedResponse<'T> = class
    inherit Response<seq<'T>>
    interface seq<'T>
    interface IEnumerable
Public MustInherit Class FeedResponse(Of T)
Inherits Response(Of IEnumerable(Of T))
Implements IEnumerable(Of T)

Type Parameters

T
Inheritance
FeedResponse<T>
Implements

Constructors

FeedResponse<T>()

Create an empty cosmos feed response for mock testing

Properties

ActivityId

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

ContinuationToken

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

Count

The number of items in the stream.

Diagnostics

Gets the cosmos diagnostics information for the current request to Azure Cosmos DB service

(Inherited from Response<T>)
ETag

Gets the entity tag associated with the resource from the Azure Cosmos DB service.

Headers

Gets the current ResponseMessage HTTP headers.

(Inherited from Response<T>)
IndexMetrics

Gets the index utilization metrics to be used for debugging purposes. It's applicable to query response only. Other feed response will return null for this field. This result is only available if QueryRequestOptions.PopulateIndexMetrics is set to true.

RequestCharge

Gets the request charge for this request from the Azure Cosmos DB service.

Resource

The content of the response.

(Inherited from Response<T>)
StatusCode

Gets the request completion status code from the Azure Cosmos DB service. This can be used to in scenario like CreateDatabaseIfNotExists to help determine if the database was created or already existed.

(Inherited from Response<T>)

Methods

GetEnumerator()

Get an enumerator of the object.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Get an enumerator of the object.

Applies to