Share via


ODataParameterReader.CreateCollectionReader Method

Definition

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

public abstract Microsoft.OData.ODataCollectionReader CreateCollectionReader ();
abstract member CreateCollectionReader : unit -> Microsoft.OData.ODataCollectionReader
Public MustOverride Function CreateCollectionReader () As ODataCollectionReader

Returns

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.

Applies to