DataServiceContext.GetEntityDescriptor Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the EntityDescriptor for the supplied entity object.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Public Function GetEntityDescriptor ( _
    entity As Object _
) As EntityDescriptor
public EntityDescriptor GetEntityDescriptor(
    Object entity
)

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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.