ODataUtils Class
Represents the utility methods used with the OData library.
Inheritance Hierarchy
System.Object
Microsoft.Data.OData.ODataUtils
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ODataUtils
'Usage
public static class ODataUtils
[ExtensionAttribute]
public ref class ODataUtils abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ODataUtils = class end
public final class ODataUtils
The ODataUtils type exposes the following members.
Methods
Name | Description | |
---|---|---|
CreateAnnotationFilter | 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. | |
GetHttpMethod | Checks whether the annotatable has an HttpMethod annotation. | |
GetMimeType | Checks whether the annotatable has a MIME type annotation. | |
GetReadFormat | Returns the format used by the message reader for reading the payload. | |
HasDefaultStream | Checks whether the entityType has a default stream. | |
IsAlwaysBindable | Gets the value of IsAlwaysBindable annotation on the functionImport. | |
IsDefaultEntityContainer | Checks whether the entityContainer is the default entity container. | |
LoadODataAnnotations(IEdmModel) | Loads the supported, OData-specific serializable annotations into their in-memory representations. | |
LoadODataAnnotations(IEdmModel, IEdmEntityType) | Loads the supported, OData-specific serializable annotations into their in-memory representations. | |
LoadODataAnnotations(IEdmModel, Int32) | Loads the supported, OData-specific serializable annotations into their in-memory representations. | |
LoadODataAnnotations(IEdmModel, IEdmEntityType, Int32) | Loads the supported, OData-specific serializable annotations into their in-memory representations. | |
NullValueReadBehaviorKind | Gets the reader behavior for null property value on the specified property. | |
ODataVersionToString | Displays the OData version to string representation. | |
SaveODataAnnotations(IEdmModel) | Turns the in-memory representations of the supported, OData-specific annotations into their serializable form. | |
SaveODataAnnotations(IEdmModel, IEdmEntityType) | Turns the in-memory representations of the supported, OData-specific annotations into their serializable form. | |
SetHasDefaultStream | Adds or removes a default stream to/from the entityType. | |
SetHeadersForPayload | Sets the content-type and data service version headers on the message used by the message writer. | |
SetHttpMethod | Sets the HttpMethod annotation of the annotatable to httpMethod. | |
SetIsAlwaysBindable | Sets the value of IsAlwaysBindable annotation of the functionImport to isAlwaysBindable | |
SetIsDefaultEntityContainer | Adds or removes a default stream to/from the entityContainer. | |
SetMimeType | Sets the MIME type annotation of the annotatable to mimeType. | |
SetNullValueReaderBehavior | Adds a transient annotation to indicate how null values for the specified property should be read. | |
StringToODataVersion | Displays a string to OData version representation. |
Top
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.