Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataServiceContext.GetLinkDescriptor Method (Object, String, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: