EdmUtil.GetMimeType Method

Definition

Overloads

GetMimeType(IEdmModel, IEdmOperation)

Checks whether the annotatableOperation has a MIME type annotation.

GetMimeType(IEdmModel, IEdmProperty)

Checks whether the annotatableProperty has a MIME type annotation.

GetMimeType(IEdmModel, IEdmOperation)

Checks whether the annotatableOperation has a MIME type annotation.

public static string GetMimeType (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmOperation annotatableOperation);
static member GetMimeType : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmOperation -> string
<Extension()>
Public Function GetMimeType (model As IEdmModel, annotatableOperation As IEdmOperation) As String

Parameters

model
IEdmModel

The IEdmModel containing the annotation.

annotatableOperation
IEdmOperation

The IEdmOperation to check.

Returns

The (non-null) value of the MIME type annotation of the annotatableOperation or null if no MIME type annotation exists.

Applies to

GetMimeType(IEdmModel, IEdmProperty)

Checks whether the annotatableProperty has a MIME type annotation.

public static string GetMimeType (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmProperty annotatableProperty);
static member GetMimeType : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmProperty -> string
<Extension()>
Public Function GetMimeType (model As IEdmModel, annotatableProperty As IEdmProperty) As String

Parameters

model
IEdmModel

The IEdmModel containing the annotation.

annotatableProperty
IEdmProperty

The IEdmProperty to check.

Returns

The (non-null) value of the MIME type annotation of the annotatableProperty or null if no MIME type annotation exists.

Applies to