DataServiceContext.TryGetUri(Object, Uri) 메서드

정의

사용 가능한 경우 지정된 엔터티와 연결된 정식 URI를 검색합니다.

public:
 bool TryGetUri(System::Object ^ entity, [Runtime::InteropServices::Out] Uri ^ % identity);
public bool TryGetUri(object entity, out Uri identity);
member this.TryGetUri : obj * Uri -> bool
Public Function TryGetUri (entity As Object, ByRef identity As Uri) As Boolean

매개 변수

entity
Object

로 식별되는 엔터티입니다 identity.

identity
Uri

엔터티의 URI입니다.

반품

정식 URI가 out 매개 변수에 반환되면 true를 반환합니다. 지정된 엔터티가 추가된 상태에서 추적되지 않거나 추가된 DataServiceContext 상태이면 URI를 사용할 수 없으며 false가 반환됩니다.

예외

시기 entity 입니다.null

설명

상태의 개체에는 Added 아직 URI가 없습니다.

적용 대상