Share via


DataServiceContext.GetEntityDescriptor(Object) Method

Definition

Gets the EntityDescriptor for the supplied entity object.

public virtual Microsoft.OData.Client.EntityDescriptor GetEntityDescriptor (object entity);
abstract member GetEntityDescriptor : obj -> Microsoft.OData.Client.EntityDescriptor
override this.GetEntityDescriptor : obj -> Microsoft.OData.Client.EntityDescriptor
Public Overridable Function GetEntityDescriptor (entity As Object) As EntityDescriptor

Parameters

entity
Object

The object for which to return the entity descriptor.

Returns

The EntityDescriptor instance for the entity, or null if an EntityDescriptor does not exist for the object.

Applies to