Share via


ODataOutputContext.CreateODataUriParameterResourceWriter Method

Definition

Creates an ODataWriter to write a resource into a Uri operation parameter.

public virtual Microsoft.OData.ODataWriter CreateODataUriParameterResourceWriter (Microsoft.OData.Edm.IEdmNavigationSource navigationSource, Microsoft.OData.Edm.IEdmStructuredType resourceType);
abstract member CreateODataUriParameterResourceWriter : Microsoft.OData.Edm.IEdmNavigationSource * Microsoft.OData.Edm.IEdmStructuredType -> Microsoft.OData.ODataWriter
override this.CreateODataUriParameterResourceWriter : Microsoft.OData.Edm.IEdmNavigationSource * Microsoft.OData.Edm.IEdmStructuredType -> Microsoft.OData.ODataWriter
Public Overridable Function CreateODataUriParameterResourceWriter (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