Share via


ODataWriter.WriteEntityReferenceLink Method

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 Sub WriteEntityReferenceLink ( _
    entityReferenceLink As ODataEntityReferenceLink _
)
'Usage
Dim instance As ODataWriter 
Dim entityReferenceLink As ODataEntityReferenceLink

instance.WriteEntityReferenceLink(entityReferenceLink)
public abstract void WriteEntityReferenceLink(
    ODataEntityReferenceLink entityReferenceLink
)
public:
virtual void WriteEntityReferenceLink(
    ODataEntityReferenceLink^ entityReferenceLink
) abstract
abstract WriteEntityReferenceLink : 
        entityReferenceLink:ODataEntityReferenceLink -> unit
public abstract function WriteEntityReferenceLink(
    entityReferenceLink : ODataEntityReferenceLink
)

Parameters

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.

See Also

Reference

ODataWriter Class

Microsoft.Data.OData Namespace