EntityInstanceContext Constructor (ODataSerializerContext, IEdmEntityTypeReference, Object)
Initializes a new instance of the EntityInstanceContext class.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Sub New ( _
serializerContext As ODataSerializerContext, _
entityType As IEdmEntityTypeReference, _
entityInstance As Object _
)
'Usage
Dim serializerContext As ODataSerializerContext
Dim entityType As IEdmEntityTypeReference
Dim entityInstance As Object
Dim instance As New EntityInstanceContext(serializerContext, _
entityType, entityInstance)
public EntityInstanceContext(
ODataSerializerContext serializerContext,
IEdmEntityTypeReference entityType,
Object entityInstance
)
public:
EntityInstanceContext(
ODataSerializerContext^ serializerContext,
IEdmEntityTypeReference^ entityType,
Object^ entityInstance
)
new :
serializerContext:ODataSerializerContext *
entityType:IEdmEntityTypeReference *
entityInstance:Object -> EntityInstanceContext
public function EntityInstanceContext(
serializerContext : ODataSerializerContext,
entityType : IEdmEntityTypeReference,
entityInstance : Object
)
Parameters
- serializerContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext
The serializer context.
- entityType
Type: IEdmEntityTypeReference
The entity type.
- entityInstance
Type: System.Object
The entity instance.