AppTaskInfo.Create(String, String, Uri, Uri, AppTaskContent) 메서드

정의

지정된 매개 변수를 사용하여 새 앱 작업을 만듭니다.

public:
 static AppTaskInfo ^ Create(Platform::String ^ title, Platform::String ^ subtitle, Uri ^ deepLink, Uri ^ iconUri, AppTaskContent ^ content);
/// [Windows.Foundation.Metadata.Experimental]
 static AppTaskInfo Create(winrt::hstring const& title, winrt::hstring const& subtitle, Uri const& deepLink, Uri const& iconUri, AppTaskContent const& content);
[Windows.Foundation.Metadata.Experimental]
public static AppTaskInfo Create(string title, string subtitle, System.Uri deepLink, System.Uri iconUri, AppTaskContent content);
function create(title, subtitle, deepLink, iconUri, content)
Public Shared Function Create (title As String, subtitle As String, deepLink As Uri, iconUri As Uri, content As AppTaskContent) As AppTaskInfo

매개 변수

title
String

Platform::String

winrt::hstring

작업의 제목입니다. 이 값은 필수이며 관련 작업을 그룹화하는 데 사용됩니다.

subtitle
String

Platform::String

winrt::hstring

추가 컨텍스트를 제공하는 작업에 대한 선택적 부제입니다. 빈 문자열일 수 있습니다.

deepLink
Uri Uri

사용자가 셸에서 작업 표현을 클릭할 때 이 작업의 컨텍스트에서 앱을 시작하는 URI입니다.

iconUri
Uri Uri

작업을 나타내는 아이콘의 경로입니다.

content
AppTaskContent

AppTaskContent 팩터리 메서드 중 하나를 사용하여 만든 이 작업에 대해 표시할 초기 콘텐츠입니다.

반품

작업을 나타내는 새 AppTaskInfo 개체입니다.

특성

설명

Important

앱 작업 지원은 2026년 5월부터 점진적으로 Windows 11로 롤아웃됩니다. API에서 Windows.UI.Shell.Tasks 사용하도록 설정된 환경을 사용하려면 해당 앱 작업 기능이 앱이 실행되는 Windows 버전에 있어야 합니다. 그렇지 않으면 이러한 API는 아무런 영향을 주지 않습니다.

제목이 필요합니다. 타이틀이 제공되지 않으면 이 메서드는 예외를 throw합니다.

적용 대상

추가 정보