EdmUtil.SetMimeType Method

Definition

Overloads

SetMimeType(IEdmModel, IEdmOperation, String)

Sets the MIME type annotation of the annotatableOperation to mimeType.

SetMimeType(IEdmModel, IEdmProperty, String)

Sets the MIME type annotation of the annotatableProperty to mimeType.

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

model
IEdmModel

The IEdmModel containing the annotation.

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

model
IEdmModel

The IEdmModel containing the annotation.

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.

Applies to