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
)

Parameters

source
Type: System.Object
Source object in the link
sourceProperty
Type: System.String
The name of the navigation property on the source object that returns the related object.
target
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.
Show:
© 2015 Microsoft