Share via


ODataSimplifiedOptions.GetOmitODataPrefix Method

Definition

Overloads

GetOmitODataPrefix()

Get whether to write OData control information without a prefix True if control information can be read without prefix 'odata.', otherwise false. The default value is false for OData 4.0 and true for OData 4.01. The option is applied during deserialization.

GetOmitODataPrefix(ODataVersion)

Version-specific behavior for writing OData control information without a prefix True if control information can be read without prefix 'odata.', otherwise false. The default value is false for OData 4.0 and true for OData 4.01. The option is applied during deserialization.

GetOmitODataPrefix()

Get whether to write OData control information without a prefix True if control information can be read without prefix 'odata.', otherwise false. The default value is false for OData 4.0 and true for OData 4.01. The option is applied during deserialization.

public bool GetOmitODataPrefix ();
member this.GetOmitODataPrefix : unit -> bool
Public Function GetOmitODataPrefix () As Boolean

Returns

Whether to omit the OData prefix for the specified version.

Applies to

GetOmitODataPrefix(ODataVersion)

Version-specific behavior for writing OData control information without a prefix True if control information can be read without prefix 'odata.', otherwise false. The default value is false for OData 4.0 and true for OData 4.01. The option is applied during deserialization.

public bool GetOmitODataPrefix (Microsoft.OData.ODataVersion version);
member this.GetOmitODataPrefix : Microsoft.OData.ODataVersion -> bool
Public Function GetOmitODataPrefix (version As ODataVersion) As Boolean

Parameters

version
ODataVersion

The version of the version-specific behavior being requested.

Returns

Whether to omit the OData prefix for the specified version.

Applies to