DocumentClient.ExecuteTransientProcedureAsync<TValue> Method

Executes a transient stored procedure against a collection as an asynchronous operation.

Namespace:  Microsoft.Azure.Documents.Client
Assembly:  Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)

Syntax

'Declaration
Public Function ExecuteTransientProcedureAsync(Of TValue) ( _
    documentCollectionLink As String, _
    procedure As Stream _
) As Task(Of StoredProcedureResponse(Of TValue))
'Usage
Dim instance As DocumentClient 
Dim documentCollectionLink As String 
Dim procedure As Stream 
Dim returnValue As Task(Of StoredProcedureResponse(Of TValue))

returnValue = instance.ExecuteTransientProcedureAsync(documentCollectionLink, _
    procedure)
public Task<StoredProcedureResponse<TValue>> ExecuteTransientProcedureAsync<TValue>(
    string documentCollectionLink,
    Stream procedure
)
public:
generic<typename TValue>
Task<StoredProcedureResponse<TValue>^>^ ExecuteTransientProcedureAsync(
    String^ documentCollectionLink, 
    Stream^ procedure
)
member ExecuteTransientProcedureAsync : 
        documentCollectionLink:string * 
        procedure:Stream -> Task<StoredProcedureResponse<'TValue>> 
JScript does not support generic types and methods.

Type Parameters

  • TValue
    The return value type of the stored procedure.

Parameters

  • documentCollectionLink
    Type: System.String
    The self-link to the collection.
  • procedure
    Type: System.IO.Stream
    The stream containing the content of the stored procedure.

Return Value

Type: System.Threading.Tasks.Task<StoredProcedureResponse<TValue>>
The task object representing the service response for the asynchronous operation.

See Also

Reference

DocumentClient Class

Microsoft.Azure.Documents.Client Namespace