ODataParameterReader.CreateCollectionReader 方法

状态为 ODataParameterReaderState.Collection 时,创建 ODataCollectionReader 以读取集合值。

命名空间:  Microsoft.Data.OData
程序集:  Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)

语法

声明
Public MustOverride Function CreateCollectionReader As ODataCollectionReader
用法
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

返回值

类型:Microsoft.Data.OData.ODataCollectionReader
状态为 ODataParameterReaderState.Collection 时,读取集合值的 ODataCollectionReader

注释

状态为 ODataParameterReaderState.Collection 时,ODataParameterReader 名称属性返回的参数的名称,且 ODataParameterReader 值属性返回 null。 在任何其他状态调用此方法将引发 ODataException。

请参阅

参考

ODataParameterReader 类

Microsoft.Data.OData 命名空间