GetMimeType Method

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


<ExtensionAttribute> _
Public Shared Function GetMimeType ( _
    annotatable As IEdmAnnotatable _
) As String
Dim annotatable As IEdmAnnotatable
Dim returnValue As String

returnValue = annotatable.GetMimeType()
public static string GetMimeType(
    this IEdmAnnotatable annotatable
static String^ GetMimeType(
    IEdmAnnotatable^ annotatable
static member GetMimeType : 
        annotatable:IEdmAnnotatable -> string 
public static function GetMimeType(
    annotatable : IEdmAnnotatable
) : String


Return Value

Type: System..::..String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmAnnotatable. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

See Also


ODataUtils Class

Microsoft.Data.OData Namespace