ODataMessageWriter.WriteServiceDocumentAsync Method

Asynchronously writes a service document with the specified defaultWorkspace as the message payload.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Public Function WriteServiceDocumentAsync ( _
    defaultWorkspace As ODataWorkspace _
) As Task
'Usage
Dim instance As ODataMessageWriter 
Dim defaultWorkspace As ODataWorkspace 
Dim returnValue As Task 

returnValue = instance.WriteServiceDocumentAsync(defaultWorkspace)
public Task WriteServiceDocumentAsync(
    ODataWorkspace defaultWorkspace
)
public:
Task^ WriteServiceDocumentAsync(
    ODataWorkspace^ defaultWorkspace
)
member WriteServiceDocumentAsync : 
        defaultWorkspace:ODataWorkspace -> Task
public function WriteServiceDocumentAsync(
    defaultWorkspace : ODataWorkspace
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
A task representing the asynchronous operation of writing the service document.

See Also

Reference

ODataMessageWriter Class

Microsoft.Data.OData Namespace