ActivationRegistrationManager.RegisterForProtocolActivation 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
ShellExecute, Launcher.LaunchUriAsync 또는 명령줄을 통해 지정된 URI 스키마가 실행될 때 앱을 활성화하도록 등록합니다.
public:
static void RegisterForProtocolActivation(Platform::String ^ scheme, Platform::String ^ logo, Platform::String ^ displayName, Platform::String ^ exePath);
/// [Windows.Foundation.Metadata.Experimental]
static void RegisterForProtocolActivation(winrt::hstring const& scheme, winrt::hstring const& logo, winrt::hstring const& displayName, winrt::hstring const& exePath);
static void RegisterForProtocolActivation(winrt::hstring const& scheme, winrt::hstring const& logo, winrt::hstring const& displayName, winrt::hstring const& exePath);
[Windows.Foundation.Metadata.Experimental]
public static void RegisterForProtocolActivation(string scheme, string logo, string displayName, string exePath);
public static void RegisterForProtocolActivation(string scheme, string logo, string displayName, string exePath);
function registerForProtocolActivation(scheme, logo, displayName, exePath)
Public Shared Sub RegisterForProtocolActivation (scheme As String, logo As String, displayName As String, exePath As String)
매개 변수
- scheme
-
String
Platform::String
winrt::hstring
활성화에 등록할 URI 체계(예: https
)입니다.
- logo
-
String
Platform::String
winrt::hstring
Windows에서 URI 체계에 사용하는 이미지 또는 리소스의 경로입니다. 패키지된 앱의 경우 이 매개 변수는 이미지 파일에 대한 패키지 상대 경로입니다. 패키지되지 않은 경우 이 매개 변수는 이진 파일(DLL, EXE)에 대한 리터럴 파일 경로와 리소스 인덱스입니다.
- displayName
-
String
Platform::String
winrt::hstring
Windows에서 URI 스키마에 사용하는 이 표시 이름입니다.
- exePath
-
String
Platform::String
winrt::hstring
활성화할 실행 파일의 경로입니다. 빈 문자열을 전달하면 현재 exectuable이 기본적으로 활성화됩니다. 일반적으로 이 메서드의 호출자가 앱 자체가 아닌 앱의 설치 관리자인 경우 이 매개 변수가 지정됩니다.
- 특성
적용 대상
추가 정보
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기