TargetedContentCollection.Path 속성

정의

콘텐츠 컬렉션의 항목에 대한 경로를 가져옵니다.

public:
 property Platform::String ^ Path { Platform::String ^ get(); };
winrt::hstring Path();
public string Path { get; }
var string = targetedContentCollection.path;
Public ReadOnly Property Path As String

속성 값

String

Platform::String

winrt::hstring

Windows 요구 사항

앱 기능
secondaryAuthenticationFactor

예제

이 예제에서는 알려진 경로에서 특정 개체를 가져오는 방법을 보여줍니다. 특히 데이터 계약에 설명된 대로 컬렉션 1("\collection1\item1")의 항목 0입니다.

기존 구독 콘텐츠 컨테이너라고 container 가정합니다.

마지막으로 항목과 연결된 URI를 시작합니다.

private async void LaunchObjectUriFromPath(TargetedContentContainer container)
{
    TargetedContentObject contentObject = container.SelectSingleObject("//collection[1]/item[0]");

    await contentObject.Item.Properties["onClick"].Uri.LauchUriAsync();
    }
}

적용 대상