Share via


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

  • entityType
    Type: IEdmEntityTypeReference
    The entity type.

See Also

Reference

EntityInstanceContext Class

EntityInstanceContext Overload

System.Web.Http.OData Namespace