IDocumentClient.UpsertUserDefinedFunctionAsync
Method
Definition
Overloads
| UpsertUserDefinedFunctionAsync(Uri, UserDefinedFunction, RequestOptions) |
Upserts a user defined function as an asychronous operation in the Azure DocumentDB database service. |
| UpsertUserDefinedFunctionAsync(String, UserDefinedFunction, RequestOptions) |
Upserts a user defined function as an asychronous operation in the Azure DocumentDB database service. |
UpsertUserDefinedFunctionAsync(Uri, UserDefinedFunction, RequestOptions)
Upserts a user defined function as an asychronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.UserDefinedFunction>> UpsertUserDefinedFunctionAsync (Uri documentCollectionUri, Microsoft.Azure.Documents.UserDefinedFunction function, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- documentCollectionUri
- Uri
The URI of the document collection to upsert the user defined function in.
- function
- UserDefinedFunction
The UserDefinedFunction object.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
The task object representing the service response for the asynchronous operation.
UpsertUserDefinedFunctionAsync(String, UserDefinedFunction, RequestOptions)
Upserts a user defined function as an asychronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.UserDefinedFunction>> UpsertUserDefinedFunctionAsync (string collectionLink, Microsoft.Azure.Documents.UserDefinedFunction function, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- collectionLink
- String
The link of the DocumentCollection to upsert the user defined function in. E.g. dbs/db_rid/colls/col_rid/
- function
- UserDefinedFunction
The UserDefinedFunction object to upsert.
- options
- RequestOptions
(Optional) Any RequestOptionsfor this request.
A task object representing the service response for the asynchronous operation.