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