Share via


ODataUtils Class

 

Represents the utility methods used with the OData library.

Namespace:   Microsoft.OData.Core
Assembly:  Microsoft.OData.Core (in Microsoft.OData.Core.dll)

Inheritance Hierarchy

System.Object
  Microsoft.OData.Core.ODataUtils

Syntax

public static class ODataUtils
[ExtensionAttribute]
public ref class ODataUtils abstract sealed 
[<AbstractClass>]
[<Sealed>]
type ODataUtils = class end
<ExtensionAttribute>
Public NotInheritable Class ODataUtils

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static AppendDefaultHeaderValue(String, String)

System_CAPS_pubmethodSystem_CAPS_static CreateAnnotationFilter(String)

Translates the annotationFilter to a func that would evalutate whether the filter would match a given annotation name. The func would evaluate to true if the annotationFilter matches the annotation name that's passed to the it, and false otherwise.

System_CAPS_pubmethodSystem_CAPS_static GenerateServiceDocument(IEdmModel)

System_CAPS_pubmethodSystem_CAPS_static GetReadFormat(ODataMessageReader)

Returns the format used by the message reader for reading the payload.

System_CAPS_pubmethodSystem_CAPS_static NullValueReadBehaviorKind(IEdmModel, IEdmProperty)

Gets the reader behavior for null property value on the specified property.

System_CAPS_pubmethodSystem_CAPS_static ODataVersionToString(ODataVersion)

Displays the OData version to string representation.

System_CAPS_pubmethodSystem_CAPS_static SetHeadersForPayload(ODataMessageWriter, ODataPayloadKind)

Sets the content-type and data service version headers on the message used by the message writer.

System_CAPS_pubmethodSystem_CAPS_static SetNullValueReaderBehavior(IEdmModel, IEdmProperty, ODataNullValueBehaviorKind)

Adds a transient annotation to indicate how null values for the specified property should be read.

System_CAPS_pubmethodSystem_CAPS_static StringToODataVersion(String)

Displays a string to OData version representation.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.OData.Core Namespace

Return to top