ODataWriter.WriteEntityReferenceLink Method (ODataEntityReferenceLink)
Writes an entity reference link, which is used to represent binding to an existing resource in a request payload.
Namespace: Microsoft.OData.Core
Assembly: Microsoft.OData.Core (in Microsoft.OData.Core.dll)
Syntax
public abstract void WriteEntityReferenceLink(
ODataEntityReferenceLink entityReferenceLink
)
public:
virtual void WriteEntityReferenceLink(
ODataEntityReferenceLink^ entityReferenceLink
) abstract
abstract WriteEntityReferenceLink :
entityReferenceLink:ODataEntityReferenceLink -> unit
Public MustOverride Sub WriteEntityReferenceLink (
entityReferenceLink As ODataEntityReferenceLink
)
Parameters
entityReferenceLink
Type: Microsoft.OData.Core.ODataEntityReferenceLinkThe 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 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
ODataWriter Class
Microsoft.OData.Core Namespace
Return to top