Share via


EntityInstanceContext<TEntityType>.EntityInstance Property

Note: This API is now obsolete.

Gets or sets the entity instance.

Namespace:  System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
<ObsoleteAttribute("Entity instance might not be available when the incoming uri has a $select. Use the EdmObject property instead.")> _
Public Property EntityInstance As TEntityType
    Get 
    Set
'Usage
Dim instance As EntityInstanceContext 
Dim value As TEntityType

value = instance.EntityInstance

instance.EntityInstance = value
[ObsoleteAttribute("Entity instance might not be available when the incoming uri has a $select. Use the EdmObject property instead.")]
public TEntityType EntityInstance { get; set; }
[ObsoleteAttribute(L"Entity instance might not be available when the incoming uri has a $select. Use the EdmObject property instead.")]
public:
property TEntityType EntityInstance {
    TEntityType get ();
    void set (TEntityType value);
}
[<ObsoleteAttribute("Entity instance might not be available when the incoming uri has a $select. Use the EdmObject property instead.")>]
member EntityInstance : 'TEntityType with get, set
function get EntityInstance () : TEntityType
function set EntityInstance (value : TEntityType)

Property Value

Type: TEntityType
The entity instance.

See Also

Reference

EntityInstanceContext<TEntityType> Class

System.Web.Http.OData Namespace