ODataMessageWriter.CreateODataResourceWriter 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.
Overloads
CreateODataResourceWriter() |
Creates an ODataWriter to write a resource. |
CreateODataResourceWriter(IEdmNavigationSource) |
Creates an ODataWriter to write a resource. |
CreateODataResourceWriter(IEdmNavigationSource, IEdmStructuredType) |
Creates an ODataWriter to write a resource. |
CreateODataResourceWriter()
Creates an ODataWriter to write a resource.
public Microsoft.OData.ODataWriter CreateODataResourceWriter ();
member this.CreateODataResourceWriter : unit -> Microsoft.OData.ODataWriter
Public Function CreateODataResourceWriter () As ODataWriter
Returns
The created writer.
Applies to
CreateODataResourceWriter(IEdmNavigationSource)
Creates an ODataWriter to write a resource.
public Microsoft.OData.ODataWriter CreateODataResourceWriter (Microsoft.OData.Edm.IEdmNavigationSource navigationSource);
member this.CreateODataResourceWriter : Microsoft.OData.Edm.IEdmNavigationSource -> Microsoft.OData.ODataWriter
Public Function CreateODataResourceWriter (navigationSource As IEdmNavigationSource) As ODataWriter
Parameters
- navigationSource
- IEdmNavigationSource
The navigation source we are going to write resources for.
Returns
The created writer.
Applies to
CreateODataResourceWriter(IEdmNavigationSource, IEdmStructuredType)
Creates an ODataWriter to write a resource.
public Microsoft.OData.ODataWriter CreateODataResourceWriter (Microsoft.OData.Edm.IEdmNavigationSource navigationSource, Microsoft.OData.Edm.IEdmStructuredType resourceType);
member this.CreateODataResourceWriter : Microsoft.OData.Edm.IEdmNavigationSource * Microsoft.OData.Edm.IEdmStructuredType -> Microsoft.OData.ODataWriter
Public 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.