SerializationExtensionMethods.SetIsValueExplicit Method
Sets an annotation indicating whether the value of an enum member should be explicitly serialized.
Namespace: Microsoft.Data.Edm.Csdl
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetIsValueExplicit ( _
member As IEdmEnumMember, _
model As IEdmModel, _
isExplicit As Nullable(Of Boolean) _
)
'Usage
Dim member As IEdmEnumMember
Dim model As IEdmModel
Dim isExplicit As Nullable(Of Boolean)
member.SetIsValueExplicit(model, _
isExplicit)
public static void SetIsValueExplicit(
this IEdmEnumMember member,
IEdmModel model,
Nullable<bool> isExplicit
)
[ExtensionAttribute]
public:
static void SetIsValueExplicit(
IEdmEnumMember^ member,
IEdmModel^ model,
Nullable<bool> isExplicit
)
static member SetIsValueExplicit :
member:IEdmEnumMember *
model:IEdmModel *
isExplicit:Nullable<bool> -> unit
public static function SetIsValueExplicit(
member : IEdmEnumMember,
model : IEdmModel,
isExplicit : Nullable<boolean>
)
Parameters
- member
Type: Microsoft.Data.Edm.IEdmEnumMember
Member to set the annotation on.
- model
Type: Microsoft.Data.Edm.IEdmModel
Model containing the member.
- isExplicit
Type: System.Nullable<Boolean>
If the value of the enum member should be explicitly serialized.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmEnumMember. 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).