ODataParameterReader.CreateCollectionReader Method

Creates an ODataCollectionReader to read the collection value when the state is ODataParameterReaderState.Collection.

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

Syntax

'Declaration
Public MustOverride Function CreateCollectionReader As ODataCollectionReader
'Usage
Dim instance As ODataParameterReader 
Dim returnValue As ODataCollectionReader 

returnValue = instance.CreateCollectionReader()
public abstract ODataCollectionReader CreateCollectionReader()
public:
virtual ODataCollectionReader^ CreateCollectionReader() abstract
abstract CreateCollectionReader : unit -> ODataCollectionReader
public abstract function CreateCollectionReader() : ODataCollectionReader

Return Value

Type: Microsoft.Data.OData.ODataCollectionReader
An ODataCollectionReader to read the collection value when the state is ODataParameterReaderState.Collection.

Remarks

When the state is ODataParameterReaderState.Collection, the Name property of the ODataParameterReader returns the name of the parameter and the Value property of the ODataParameterReader returns null. Calling this method in any other state will cause an ODataException to be thrown.

See Also

Reference

ODataParameterReader Class

Microsoft.Data.OData Namespace