ODataOutputContext.CreateODataCollectionWriter(IEdmTypeReference) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an ODataCollectionWriter to write a collection of primitive or complex values (as result of a service operation invocation).
public virtual Microsoft.OData.ODataCollectionWriter CreateODataCollectionWriter (Microsoft.OData.Edm.IEdmTypeReference itemTypeReference);
abstract member CreateODataCollectionWriter : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.ODataCollectionWriter
override this.CreateODataCollectionWriter : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.ODataCollectionWriter
Public Overridable Function CreateODataCollectionWriter (itemTypeReference As IEdmTypeReference) As ODataCollectionWriter
Parameters
- itemTypeReference
- IEdmTypeReference
The item type of the collection being written or null if no metadata is available.
Returns
The created collection writer.
Remarks
The write must flush the output when it's finished (inside the last Write call).