ODataCollectionSerializer.AddTypeNameAnnotationAsNeeded Method (ODataCollectionValue, ODataMetadataLevel)
Adds the type name annotations required for proper json light serialization.
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
protected internal static void AddTypeNameAnnotationAsNeeded(
ODataCollectionValue value,
ODataMetadataLevel metadataLevel
)
public protected:
static void AddTypeNameAnnotationAsNeeded(
ODataCollectionValue^ value,
ODataMetadataLevel metadataLevel
)
static member AddTypeNameAnnotationAsNeeded :
value:ODataCollectionValue *
metadataLevel:ODataMetadataLevel -> unit
Protected Friend Shared Sub AddTypeNameAnnotationAsNeeded (
value As ODataCollectionValue,
metadataLevel As ODataMetadataLevel
)
Parameters
value
Type: Microsoft.Data.OData.ODataCollectionValueThe collection value for which the annotations have to be added.
metadataLevel
Type: System.Web.Http.OData.Formatter.ODataMetadataLevelThe OData metadata level of the response.
See Also
ODataCollectionSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace
Return to top