Share via


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)

Syntax

'Declaration
Public Function GetLinkDescriptor ( _
    source As Object, _
    sourceProperty As String, _
    target As Object _
) As LinkDescriptor
'Usage
Dim instance As DataServiceContext 
Dim source As Object 
Dim sourceProperty As String 
Dim target As Object 
Dim returnValue As LinkDescriptor 

returnValue = instance.GetLinkDescriptor(source, _
    sourceProperty, target)
public LinkDescriptor GetLinkDescriptor(
    Object source,
    string sourceProperty,
    Object target
)
public:
LinkDescriptor^ GetLinkDescriptor(
    Object^ source, 
    String^ sourceProperty, 
    Object^ target
)
member GetLinkDescriptor : 
        source:Object * 
        sourceProperty:string * 
        target:Object -> LinkDescriptor
public function GetLinkDescriptor(
    source : Object, 
    sourceProperty : String, 
    target : Object
) : LinkDescriptor

Parameters

  • sourceProperty
    Type: System.String
    The name of the navigation property on the source object that returns the related object.

Return Value

Type: System.Data.Services.Client.LinkDescriptor
The LinkDescriptor instance for the specified relationship, or nulla null reference (Nothing in Visual Basic) if a LinkDescriptor does not exist for the relationship.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace