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
- defaultWorkspace
Type: Microsoft.Data.OData.ODataWorkspace
The default workspace to write in the service document.
Return Value
Type: System.Threading.Tasks.Task
A task representing the asynchronous operation of writing the service document.