DataServiceContext.GetLinkDescriptor(Object, String, Object) Method

Definition

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

C#
public System.Data.Services.Client.LinkDescriptor GetLinkDescriptor(object source, string sourceProperty, object target);

Parameters

source
Object

Source object in the link.

sourceProperty
String

The name of the navigation property on the source object that returns the related object.

target
Object

The related entity.

Returns

The LinkDescriptor instance for the specified relationship, or null if a LinkDescriptor does not exist for the relationship.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1