Partilhar via


SerializationExtensionMethods.IsSerializedAsElement Method

Gets an annotation indicating if the value should be serialized as an element.

Namespace:  Microsoft.Data.Edm.Csdl
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsSerializedAsElement ( _
    value As IEdmValue, _
    model As IEdmModel _
) As Boolean
'Usage
Dim value As IEdmValue 
Dim model As IEdmModel 
Dim returnValue As Boolean 

returnValue = value.IsSerializedAsElement(model)
public static bool IsSerializedAsElement(
    this IEdmValue value,
    IEdmModel model
)
[ExtensionAttribute]
public:
static bool IsSerializedAsElement(
    IEdmValue^ value, 
    IEdmModel^ model
)
static member IsSerializedAsElement : 
        value:IEdmValue * 
        model:IEdmModel -> bool
public static function IsSerializedAsElement(
    value : IEdmValue, 
    model : IEdmModel
) : boolean

Parameters

Return Value

Type: System.Boolean
Value indicating if the string should be serialized as an element.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmValue. 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