Share via


SerializationExtensionMethods.SetIsValueExplicit Method

Definition

Sets an annotation indicating whether the value of an enum member should be explicitly serialized.

public static void SetIsValueExplicit (this Microsoft.OData.Edm.IEdmEnumMember member, Microsoft.OData.Edm.IEdmModel model, bool? isExplicit);
static member SetIsValueExplicit : Microsoft.OData.Edm.IEdmEnumMember * Microsoft.OData.Edm.IEdmModel * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsValueExplicit (member As IEdmEnumMember, model As IEdmModel, isExplicit As Nullable(Of Boolean))

Parameters

member
IEdmEnumMember

Member to set the annotation on.

model
IEdmModel

Model containing the member.

isExplicit
Nullable<Boolean>

If the value of the enum member should be explicitly serialized

Applies to