Share via


ODataWriter.WriteEntityReferenceLinkAsync(ODataEntityReferenceLink) Method

Definition

Asynchronously writes an entity reference link, which is used to represent binding to an existing resource in a request payload.

public virtual System.Threading.Tasks.Task WriteEntityReferenceLinkAsync (Microsoft.OData.ODataEntityReferenceLink entityReferenceLink);
abstract member WriteEntityReferenceLinkAsync : Microsoft.OData.ODataEntityReferenceLink -> System.Threading.Tasks.Task
override this.WriteEntityReferenceLinkAsync : Microsoft.OData.ODataEntityReferenceLink -> System.Threading.Tasks.Task
Public Overridable Function WriteEntityReferenceLinkAsync (entityReferenceLink As ODataEntityReferenceLink) As Task

Parameters

entityReferenceLink
ODataEntityReferenceLink

The entity reference link to write.

Returns

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 nested resource info 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.

Applies to