Condividi tramite


DataServiceContext.GetLinkDescriptor(Object, String, Object) Metodo

Definizione

Ottiene l'oggetto LinkDescriptor per un collegamento specifico che definisce la relazione tra due entità.

public virtual Microsoft.OData.Client.LinkDescriptor GetLinkDescriptor (object source, string sourceProperty, object target);
abstract member GetLinkDescriptor : obj * string * obj -> Microsoft.OData.Client.LinkDescriptor
override this.GetLinkDescriptor : obj * string * obj -> Microsoft.OData.Client.LinkDescriptor
Public Overridable Function GetLinkDescriptor (source As Object, sourceProperty As String, target As Object) As LinkDescriptor

Parametri

source
Object

Oggetto di origine nel collegamento

sourceProperty
String

Nome della proprietà di navigazione nell'oggetto source che restituisce l'oggetto correlato.

target
Object

Entità correlata.

Restituisce

LinkDescriptor Istanza della relazione specificata o Null se non esiste un LinkDescriptor oggetto per la relazione.

Si applica a