Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataServiceContext.GetLinkDescriptor Method

Gets the LinkDescriptor for a specific link that defines the relationship between two entities.

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

public LinkDescriptor GetLinkDescriptor(
	Object source,
	string sourceProperty,
	Object target


Type: System.Object
Source object in the link
Type: System.String
The name of the navigation property on the source object that returns the related object.
Type: System.Object
The related entity.

Return Value

Type: System.Data.Services.Client.LinkDescriptor
The LinkDescriptor instance for the specified relationship, or null if a LinkDescriptor does not exist for the relationship.
© 2015 Microsoft