SetMimeType Method
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetMimeType ( _
annotatable As IEdmAnnotatable, _
mimeType As String _
)
'Usage
Dim annotatable As IEdmAnnotatable
Dim mimeType As String
annotatable.SetMimeType(mimeType)
public static void SetMimeType(
this IEdmAnnotatable annotatable,
string mimeType
)
[ExtensionAttribute]
public:
static void SetMimeType(
IEdmAnnotatable^ annotatable,
String^ mimeType
)
static member SetMimeType :
annotatable:IEdmAnnotatable *
mimeType:string -> unit
public static function SetMimeType(
annotatable : IEdmAnnotatable,
mimeType : String
)
Parameters
- annotatable
Type: Microsoft.Data.Edm..::..IEdmAnnotatable
- mimeType
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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).