ODataWriter.WriteEntityReferenceLinkAsync Method
Asynchronously writes an entity reference link, which is used to represent binding to an existing resource in a request payload.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public MustOverride Function WriteEntityReferenceLinkAsync ( _
entityReferenceLink As ODataEntityReferenceLink _
) As Task
'Usage
Dim instance As ODataWriter
Dim entityReferenceLink As ODataEntityReferenceLink
Dim returnValue As Task
returnValue = instance.WriteEntityReferenceLinkAsync(entityReferenceLink)
public abstract Task WriteEntityReferenceLinkAsync(
ODataEntityReferenceLink entityReferenceLink
)
public:
virtual Task^ WriteEntityReferenceLinkAsync(
ODataEntityReferenceLink^ entityReferenceLink
) abstract
abstract WriteEntityReferenceLinkAsync :
entityReferenceLink:ODataEntityReferenceLink -> Task
public abstract function WriteEntityReferenceLinkAsync(
entityReferenceLink : ODataEntityReferenceLink
) : Task
Parameters
- entityReferenceLink
Type: Microsoft.Data.OData.ODataEntityReferenceLink
The entity reference link to write.
Return Value
Type: System.Threading.Tasks.Task
A task instance that represents the asynchronous write operation.
Remarks
This method can only be called for writing request messages. The entity reference link must be surrounded by a navigation link written through WriteStart/WriteEnd. The Url will be ignored in that case and the Uri from the Url will be used as the binding URL to be written.