Bagikan melalui


SerializationExtensionMethods.SetIsSerializedAsElement Method

Sets 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 Sub SetIsSerializedAsElement ( _
    value As IEdmValue, _
    model As IEdmModel, _
    isSerializedAsElement As Boolean _
)
'Usage
Dim value As IEdmValue 
Dim model As IEdmModel 
Dim isSerializedAsElement As Boolean 

value.SetIsSerializedAsElement(model, _
    isSerializedAsElement)
public static void SetIsSerializedAsElement(
    this IEdmValue value,
    IEdmModel model,
    bool isSerializedAsElement
)
[ExtensionAttribute]
public:
static void SetIsSerializedAsElement(
    IEdmValue^ value, 
    IEdmModel^ model, 
    bool isSerializedAsElement
)
static member SetIsSerializedAsElement : 
        value:IEdmValue * 
        model:IEdmModel * 
        isSerializedAsElement:bool -> unit
public static function SetIsSerializedAsElement(
    value : IEdmValue, 
    model : IEdmModel, 
    isSerializedAsElement : boolean
)

Parameters

  • isSerializedAsElement
    Type: System.Boolean
    Value indicating if the value 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