DataServiceContext.GetLinkDescriptor 메서드
두 엔터티 간의 관계를 정의하는 특정 링크에 대한 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)입니다.