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
- entry
Type: Microsoft.Data.OData.ODataEntry
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 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).