Share via


ODataObjectModelExtensions.SetSerializationInfo Method (ODataEntityReferenceLink, ODataEntityReferenceLinkSerializationInfo)

Provide additional serialization information to the ODataMessageWriter for entityReferenceLink.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetSerializationInfo ( _
    entityReferenceLink As ODataEntityReferenceLink, _
    serializationInfo As ODataEntityReferenceLinkSerializationInfo _
)
'Usage
Dim entityReferenceLink As ODataEntityReferenceLink 
Dim serializationInfo As ODataEntityReferenceLinkSerializationInfo 

entityReferenceLink.SetSerializationInfo(serializationInfo)
public static void SetSerializationInfo(
    this ODataEntityReferenceLink entityReferenceLink,
    ODataEntityReferenceLinkSerializationInfo serializationInfo
)
[ExtensionAttribute]
public:
static void SetSerializationInfo(
    ODataEntityReferenceLink^ entityReferenceLink, 
    ODataEntityReferenceLinkSerializationInfo^ serializationInfo
)
static member SetSerializationInfo : 
        entityReferenceLink:ODataEntityReferenceLink * 
        serializationInfo:ODataEntityReferenceLinkSerializationInfo -> unit
public static function SetSerializationInfo(
    entityReferenceLink : ODataEntityReferenceLink, 
    serializationInfo : ODataEntityReferenceLinkSerializationInfo
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ODataEntityReferenceLink. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also

Reference

ODataObjectModelExtensions Class

SetSerializationInfo Overload

Microsoft.Data.OData Namespace