ODataCollectionSerializer Class
ODataSerializer for serializing collection of Entities or Complex types or primitives.
Inheritance Hierarchy
System.Object
System.Web.Http.OData.Formatter.Serialization.ODataSerializer
System.Web.Http.OData.Formatter.Serialization.ODataEdmTypeSerializer
System.Web.Http.OData.Formatter.Serialization.ODataCollectionSerializer
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Class ODataCollectionSerializer _
Inherits ODataEdmTypeSerializer
'Usage
Dim instance As ODataCollectionSerializer
public class ODataCollectionSerializer : ODataEdmTypeSerializer
public ref class ODataCollectionSerializer : public ODataEdmTypeSerializer
type ODataCollectionSerializer =
class
inherit ODataEdmTypeSerializer
end
public class ODataCollectionSerializer extends ODataEdmTypeSerializer
The ODataCollectionSerializer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ODataCollectionSerializer | Initializes a new instance of the ODataCollectionSerializer class. |
Top
Properties
Name | Description | |
---|---|---|
ODataPayloadKind | Gets the ODataPayloadKind that this serializer generates. (Inherited from ODataSerializer.) | |
SerializerProvider | Gets the ODataSerializerProvider that can be used to write inner objects. (Inherited from ODataEdmTypeSerializer.) |
Top
Methods
Name | Description | |
---|---|---|
AddTypeNameAnnotationAsNeeded | Adds the type name annotations required for proper json light serialization. | |
CreateODataCollectionValue | Creates an ODataCollectionValue for the enumerable represented by enumerable. | |
CreateODataValue | (Overrides ODataEdmTypeSerializer.CreateODataValue(Object, IEdmTypeReference, ODataSerializerContext).) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
WriteCollection | Writes the given graph using the given writer. | |
WriteObject | (Overrides ODataSerializer.WriteObject(Object, Type, ODataMessageWriter, ODataSerializerContext).) | |
WriteObjectInline | Writes the given object specified by the parameter graph as a part of an existing OData message using the given messageWriter and the writeContext. (Inherited from ODataEdmTypeSerializer.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.