Share via


ODataOutputContext.CreateODataResourceWriter Method

Definition

Creates an ODataWriter to write a resource.

public virtual Microsoft.OData.ODataWriter CreateODataResourceWriter (Microsoft.OData.Edm.IEdmNavigationSource navigationSource, Microsoft.OData.Edm.IEdmStructuredType resourceType);
abstract member CreateODataResourceWriter : Microsoft.OData.Edm.IEdmNavigationSource * Microsoft.OData.Edm.IEdmStructuredType -> Microsoft.OData.ODataWriter
override this.CreateODataResourceWriter : Microsoft.OData.Edm.IEdmNavigationSource * Microsoft.OData.Edm.IEdmStructuredType -> Microsoft.OData.ODataWriter
Public Overridable Function CreateODataResourceWriter (navigationSource As IEdmNavigationSource, resourceType As IEdmStructuredType) As ODataWriter

Parameters

navigationSource
IEdmNavigationSource

The navigation source we are going to write resource set for.

resourceType
IEdmStructuredType

The structured type for the items in the resource set to be written (or null if the entity set base type should be used).

Returns

The created writer.

Remarks

The write must flush the output when it's finished (inside the last Write call).

Applies to