DataServiceContext.GetEntityDescriptor Method
Gets the EntityDescriptor for the supplied entity object.
Namespace: System.Data.Services.Client
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Syntax
'Declaration
Public Function GetEntityDescriptor ( _
entity As Object _
) As EntityDescriptor
'Usage
Dim instance As DataServiceContext
Dim entity As Object
Dim returnValue As EntityDescriptor
returnValue = instance.GetEntityDescriptor(entity)
public EntityDescriptor GetEntityDescriptor(
Object entity
)
public:
EntityDescriptor^ GetEntityDescriptor(
Object^ entity
)
member GetEntityDescriptor :
entity:Object -> EntityDescriptor
public function GetEntityDescriptor(
entity : Object
) : EntityDescriptor
Parameters
- entity
Type: System.Object
The object for which to return the entity descriptor.
Return Value
Type: System.Data.Services.Client.EntityDescriptor
The EntityDescriptor instance for the entity, or nulla null reference (Nothing in Visual Basic) if an EntityDescriptor does not exist for the object.