EdmUtil.GetMimeType 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
GetMimeType(IEdmModel, IEdmOperation) |
Checks whether the |
GetMimeType(IEdmModel, IEdmProperty) |
Checks whether the |
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
- 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
- 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.