Share via


ODataObjectModelExtensions.SetSerializationInfo Method (ODataEntry, ODataFeedAndEntrySerializationInfo)

Provide additional serialization information to the ODataWriter for entry.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetSerializationInfo ( _
    entry As ODataEntry, _
    serializationInfo As ODataFeedAndEntrySerializationInfo _
)
'Usage
Dim entry As ODataEntry 
Dim serializationInfo As ODataFeedAndEntrySerializationInfo 

entry.SetSerializationInfo(serializationInfo)
public static void SetSerializationInfo(
    this ODataEntry entry,
    ODataFeedAndEntrySerializationInfo serializationInfo
)
[ExtensionAttribute]
public:
static void SetSerializationInfo(
    ODataEntry^ entry, 
    ODataFeedAndEntrySerializationInfo^ serializationInfo
)
static member SetSerializationInfo : 
        entry:ODataEntry * 
        serializationInfo:ODataFeedAndEntrySerializationInfo -> unit
public static function SetSerializationInfo(
    entry : ODataEntry, 
    serializationInfo : ODataFeedAndEntrySerializationInfo
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ODataEntry. 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