ODataResourceSetSerializer.CreateODataOperation 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 ODataOperation to be written for the given operation and the resourceSet instance.
public virtual Microsoft.OData.ODataOperation CreateODataOperation (Microsoft.OData.Edm.IEdmOperation operation, Microsoft.AspNet.OData.ResourceSetContext resourceSetContext, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
abstract member CreateODataOperation : Microsoft.OData.Edm.IEdmOperation * Microsoft.AspNet.OData.ResourceSetContext * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataOperation
override this.CreateODataOperation : Microsoft.OData.Edm.IEdmOperation * Microsoft.AspNet.OData.ResourceSetContext * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataOperation
Public Overridable Function CreateODataOperation (operation As IEdmOperation, resourceSetContext As ResourceSetContext, writeContext As ODataSerializerContext) As ODataOperation
Parameters
- operation
- IEdmOperation
The OData operation.
- resourceSetContext
- ResourceSetContext
The context for the resourceSet instance being written.
- writeContext
- ODataSerializerContext
The serializer context.
Returns
The created operation or null if the operation should not be written.