ODataObjectModelExtensions.SetSerializationInfo Method (ODataFeed, ODataFeedAndEntrySerializationInfo)
Provide additional serialization information to the ODataWriter for feed.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetSerializationInfo ( _
feed As ODataFeed, _
serializationInfo As ODataFeedAndEntrySerializationInfo _
)
'Usage
Dim feed As ODataFeed
Dim serializationInfo As ODataFeedAndEntrySerializationInfo
feed.SetSerializationInfo(serializationInfo)
public static void SetSerializationInfo(
this ODataFeed feed,
ODataFeedAndEntrySerializationInfo serializationInfo
)
[ExtensionAttribute]
public:
static void SetSerializationInfo(
ODataFeed^ feed,
ODataFeedAndEntrySerializationInfo^ serializationInfo
)
static member SetSerializationInfo :
feed:ODataFeed *
serializationInfo:ODataFeedAndEntrySerializationInfo -> unit
public static function SetSerializationInfo(
feed : ODataFeed,
serializationInfo : ODataFeedAndEntrySerializationInfo
)
Parameters
- feed
Type: Microsoft.Data.OData.ODataFeed
The instance to set the serialization info.
- serializationInfo
Type: Microsoft.Data.OData.ODataFeedAndEntrySerializationInfo
The serialization info to set.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ODataFeed. 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).