2 つのエンティティ間のリレーションシップを定義する特定のリンクの LinkDescriptor を取得します。
名前空間: System.Data.Services.Client
アセンブリ: Microsoft.Data.Services.Client (Microsoft.Data.Services.Client.dll)
構文
'宣言
Public Function GetLinkDescriptor ( _
source As Object, _
sourceProperty As String, _
target As Object _
) As LinkDescriptor
'使用
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
パラメーター
- source
型: System.Object
リンクのソース オブジェクト。
- sourceProperty
型: System.String
関連オブジェクトを返す source オブジェクトのナビゲーション プロパティの名前。
- target
型: System.Object
関連エンティティ。
戻り値
型: System.Data.Services.Client.LinkDescriptor
指定されたリレーションシップの LinkDescriptor インスタンス。LinkDescriptor がリレーションシップに対して存在しない場合は nullNULL 参照 (Visual Basic では Nothing)。