EdmUtil.SetMimeType 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
SetMimeType(IEdmModel, IEdmOperation, String) |
Sets the MIME type annotation of the |
SetMimeType(IEdmModel, IEdmProperty, String) |
Sets the MIME type annotation of the |
SetMimeType(IEdmModel, IEdmOperation, String)
Sets the MIME type annotation of the annotatableOperation
to mimeType
.
public static void SetMimeType (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmOperation annotatableOperation, string mimeType);
static member SetMimeType : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmOperation * string -> unit
<Extension()>
Public Sub SetMimeType (model As IEdmModel, annotatableOperation As IEdmOperation, mimeType As String)
Parameters
- annotatableOperation
- IEdmOperation
The IEdmOperation to modify.
- mimeType
- String
The MIME type value to set as annotation value; if null, an existing annotation will be removed.
Remarks
The MIME type annotation is only supported on service operations and primitive properties for serialization purposes.
Applies to
SetMimeType(IEdmModel, IEdmProperty, String)
Sets the MIME type annotation of the annotatableProperty
to mimeType
.
public static void SetMimeType (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmProperty annotatableProperty, string mimeType);
static member SetMimeType : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmProperty * string -> unit
<Extension()>
Public Sub SetMimeType (model As IEdmModel, annotatableProperty As IEdmProperty, mimeType As String)
Parameters
- annotatableProperty
- IEdmProperty
The IEdmProperty to modify.
- mimeType
- String
The MIME type value to set as annotation value; if null, an existing annotation will be removed.
Remarks
The MIME type annotation is only supported on service operations and primitive properties for serialization purposes.