ODataObjectModelExtensions.SetSerializationInfo Method (ODataEntityReferenceLink, ODataEntityReferenceLinkSerializationInfo)
Provide additional serialization information to the ODataMessageWriter for entityReferenceLink.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetSerializationInfo ( _
entityReferenceLink As ODataEntityReferenceLink, _
serializationInfo As ODataEntityReferenceLinkSerializationInfo _
)
'Usage
Dim entityReferenceLink As ODataEntityReferenceLink
Dim serializationInfo As ODataEntityReferenceLinkSerializationInfo
entityReferenceLink.SetSerializationInfo(serializationInfo)
public static void SetSerializationInfo(
this ODataEntityReferenceLink entityReferenceLink,
ODataEntityReferenceLinkSerializationInfo serializationInfo
)
[ExtensionAttribute]
public:
static void SetSerializationInfo(
ODataEntityReferenceLink^ entityReferenceLink,
ODataEntityReferenceLinkSerializationInfo^ serializationInfo
)
static member SetSerializationInfo :
entityReferenceLink:ODataEntityReferenceLink *
serializationInfo:ODataEntityReferenceLinkSerializationInfo -> unit
public static function SetSerializationInfo(
entityReferenceLink : ODataEntityReferenceLink,
serializationInfo : ODataEntityReferenceLinkSerializationInfo
)
Parameters
- entityReferenceLink
Type: Microsoft.Data.OData.ODataEntityReferenceLink
The instance to set the serialization info.
- serializationInfo
Type: Microsoft.Data.OData.ODataEntityReferenceLinkSerializationInfo
The serialization info to set.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ODataEntityReferenceLink. 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.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).