Share via


ODataWriter.WriteEntityReferenceLink(ODataEntityReferenceLink) Method

Definition

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

public abstract void WriteEntityReferenceLink (Microsoft.OData.ODataEntityReferenceLink entityReferenceLink);
abstract member WriteEntityReferenceLink : Microsoft.OData.ODataEntityReferenceLink -> unit
Public MustOverride Sub WriteEntityReferenceLink (entityReferenceLink As ODataEntityReferenceLink)

Parameters

entityReferenceLink
ODataEntityReferenceLink

The entity reference link to write.

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