DataServiceContext.GetLinkDescriptor Method (Object, String, Object)

 

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

Namespace:   System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.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.

.NET Framework
Available since 3.5
Silverlight
Available since 4.0
Return to top
Show: