ActivationRegistrationManager.RegisterForProtocolActivation 메서드

정의

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이 기본적으로 활성화됩니다. 일반적으로 이 메서드의 호출자가 앱 자체가 아닌 앱의 설치 관리자인 경우 이 매개 변수가 지정됩니다.

특성

적용 대상

추가 정보