Поделиться через


DataServiceContext.GetLinkDescriptor Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Function GetLinkDescriptor ( _
    source As Object, _
    sourceProperty As String, _
    target As Object _
) As LinkDescriptor
public LinkDescriptor GetLinkDescriptor(
    Object source,
    string sourceProperty,
    Object target
)

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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.