ODataMessageReader.CreateODataResourceReader 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
CreateODataResourceReader() |
Creates an ODataReader to read a resource. |
CreateODataResourceReader(IEdmStructuredType) |
Creates an ODataReader to read a resource. |
CreateODataResourceReader(IEdmNavigationSource, IEdmStructuredType) |
Creates an ODataReader to read a resource. |
CreateODataResourceReader()
Creates an ODataReader to read a resource.
public Microsoft.OData.ODataReader CreateODataResourceReader ();
member this.CreateODataResourceReader : unit -> Microsoft.OData.ODataReader
Public Function CreateODataResourceReader () As ODataReader
Returns
The created reader.
Applies to
CreateODataResourceReader(IEdmStructuredType)
Creates an ODataReader to read a resource.
public Microsoft.OData.ODataReader CreateODataResourceReader (Microsoft.OData.Edm.IEdmStructuredType resourceType);
member this.CreateODataResourceReader : Microsoft.OData.Edm.IEdmStructuredType -> Microsoft.OData.ODataReader
Public Function CreateODataResourceReader (resourceType As IEdmStructuredType) As ODataReader
Parameters
- resourceType
- IEdmStructuredType
The expected resource type for the resource to be read.
Returns
The created reader.
Applies to
CreateODataResourceReader(IEdmNavigationSource, IEdmStructuredType)
Creates an ODataReader to read a resource.
public Microsoft.OData.ODataReader CreateODataResourceReader (Microsoft.OData.Edm.IEdmNavigationSource navigationSource, Microsoft.OData.Edm.IEdmStructuredType resourceType);
member this.CreateODataResourceReader : Microsoft.OData.Edm.IEdmNavigationSource * Microsoft.OData.Edm.IEdmStructuredType -> Microsoft.OData.ODataReader
Public Function CreateODataResourceReader (navigationSource As IEdmNavigationSource, resourceType As IEdmStructuredType) As ODataReader
Parameters
- navigationSource
- IEdmNavigationSource
The navigation source we are going to read resources for.
- resourceType
- IEdmStructuredType
The expected resource type for the resource to be read.
Returns
The created reader.