DocumentClient.ReadUserDefinedFunctionFeedAsync Method

Definition

Overloads

ReadUserDefinedFunctionFeedAsync(String, FeedOptions)

Reads the feed (sequence) of UserDefinedFunction for a collection from the Azure DocumentDB database service as an asynchronous operation.

ReadUserDefinedFunctionFeedAsync(Uri, FeedOptions)

Reads the feed (sequence) of user defined functions for a collection as an asynchronous operation from the Azure DocumentDB database service.

ReadUserDefinedFunctionFeedAsync(String, FeedOptions)

Reads the feed (sequence) of UserDefinedFunction for a collection from the Azure DocumentDB database service as an asynchronous operation.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.FeedResponse<Microsoft.Azure.Documents.UserDefinedFunction>> ReadUserDefinedFunctionFeedAsync (string userDefinedFunctionsLink, Microsoft.Azure.Documents.Client.FeedOptions options = null);
Parameters
userDefinedFunctionsLink
String

The SelfLink of the resources to be read. E.g. /dbs/db_rid/colls/col_rid/udfs/

options
FeedOptions

(Optional) The request options for the request.

Returns

A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a UserDefinedFunction containing the read resource record.

Exceptions

If userDefinedFunctionsLink is not set.

This exception can encapsulate many different types of errors. To determine the specific error always look at the StatusCode property. Some common codes you may get when creating a Document are:

StatusCodeReason for exception
404NotFound - This means the resource feed you tried to read did not exist. Check the parent rids are correct.
429TooManyRequests - This means you have exceeded the number of request units per second. Consult the DocumentClientException.RetryAfter value to see how long you should wait before retrying this operation.

ReadUserDefinedFunctionFeedAsync(Uri, FeedOptions)

Reads the feed (sequence) of user defined functions for a collection as an asynchronous operation from the Azure DocumentDB database service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.FeedResponse<Microsoft.Azure.Documents.UserDefinedFunction>> ReadUserDefinedFunctionFeedAsync (Uri userDefinedFunctionsUri, Microsoft.Azure.Documents.Client.FeedOptions options = null);
Parameters
userDefinedFunctionsUri
Uri

the URI for the user defined functions.

options
FeedOptions

The request options for the request.

Returns

The task object representing the service response for the asynchronous operation.