Share via


ODataObjectModelExtensions.SetSerializationInfo Method (ODataCollectionStart, ODataCollectionStartSerializationInfo)

Provide additional serialization information to the ODataCollectionWriter for collectionStart.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetSerializationInfo ( _
    collectionStart As ODataCollectionStart, _
    serializationInfo As ODataCollectionStartSerializationInfo _
)
'Usage
Dim collectionStart As ODataCollectionStart 
Dim serializationInfo As ODataCollectionStartSerializationInfo 

collectionStart.SetSerializationInfo(serializationInfo)
public static void SetSerializationInfo(
    this ODataCollectionStart collectionStart,
    ODataCollectionStartSerializationInfo serializationInfo
)
[ExtensionAttribute]
public:
static void SetSerializationInfo(
    ODataCollectionStart^ collectionStart, 
    ODataCollectionStartSerializationInfo^ serializationInfo
)
static member SetSerializationInfo : 
        collectionStart:ODataCollectionStart * 
        serializationInfo:ODataCollectionStartSerializationInfo -> unit
public static function SetSerializationInfo(
    collectionStart : ODataCollectionStart, 
    serializationInfo : ODataCollectionStartSerializationInfo
)

Parameters

Usage Note

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