Bagikan melalui


SerializationExtensionMethods.IsValueExplicit Method

Gets 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 Function IsValueExplicit ( _
    member As IEdmEnumMember, _
    model As IEdmModel _
) As Nullable(Of Boolean)
'Usage
Dim member As IEdmEnumMember 
Dim model As IEdmModel 
Dim returnValue As Nullable(Of Boolean)

returnValue = member.IsValueExplicit(model)
public static Nullable<bool> IsValueExplicit(
    this IEdmEnumMember member,
    IEdmModel model
)
[ExtensionAttribute]
public:
static Nullable<bool> IsValueExplicit(
    IEdmEnumMember^ member, 
    IEdmModel^ model
)
static member IsValueExplicit : 
        member:IEdmEnumMember * 
        model:IEdmModel -> Nullable<bool> 
public static function IsValueExplicit(
    member : IEdmEnumMember, 
    model : IEdmModel
) : Nullable<boolean>

Parameters

Return Value

Type: System.Nullable<Boolean>
Whether the member should have its value 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).

See Also

Reference

SerializationExtensionMethods Class

Microsoft.Data.Edm.Csdl Namespace