ODataUtils.GetMimeType Method

Checks whether the annotatable has a MIME type annotation.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetMimeType ( _
    model As IEdmModel, _
    annotatable As IEdmElement _
) As String
'Usage
Dim model As IEdmModel 
Dim annotatable As IEdmElement 
Dim returnValue As String 

returnValue = model.GetMimeType(annotatable)
public static string GetMimeType(
    this IEdmModel model,
    IEdmElement annotatable
)
[ExtensionAttribute]
public:
static String^ GetMimeType(
    IEdmModel^ model, 
    IEdmElement^ annotatable
)
static member GetMimeType : 
        model:IEdmModel * 
        annotatable:IEdmElement -> string
public static function GetMimeType(
    model : IEdmModel, 
    annotatable : IEdmElement
) : String

Parameters

Return Value

Type: System.String
The (non-null) value of the MIME type annotation of the annotatable or null if no MIME type annotation exists.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

ODataUtils Class

Microsoft.Data.OData Namespace