Bagikan melalui


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

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).

See Also

Reference

SerializationExtensionMethods Class

Microsoft.Data.Edm.Csdl Namespace