ODataSimplifiedOptions.SetOmitODataPrefix 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
SetOmitODataPrefix(Boolean) |
Whether to write OData control information without a prefix True to read control information without the 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. |
SetOmitODataPrefix(Boolean, ODataVersion) |
Version-specific behavior for writing OData control information without a prefix True to read control information without the 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. |
SetOmitODataPrefix(Boolean)
Whether to write OData control information without a prefix True to read control information without the 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 void SetOmitODataPrefix (bool enabled);
member this.SetOmitODataPrefix : bool -> unit
Public Sub SetOmitODataPrefix (enabled As Boolean)
Parameters
- enabled
- Boolean
True to omit writing the OData prefix, False to write the prefix.
Applies to
SetOmitODataPrefix(Boolean, ODataVersion)
Version-specific behavior for writing OData control information without a prefix True to read control information without the 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 void SetOmitODataPrefix (bool enabled, Microsoft.OData.ODataVersion version);
member this.SetOmitODataPrefix : bool * Microsoft.OData.ODataVersion -> unit
Public Sub SetOmitODataPrefix (enabled As Boolean, version As ODataVersion)
Parameters
- enabled
- Boolean
True to omit writing the OData prefix, False to write the prefix.
- version
- ODataVersion
The version for which to specify the omit prefix behavior.