Share via


ActivationRegistrationManager.RegisterForProtocolActivation メソッド

定義

指定した URI スキームが ShellExecuteLauncher.LaunchUriAsync、またはコマンド ラインを使用して実行されるときに、アプリをアクティブ化するために登録します。

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

URI スキームに Windows によって使用されるイメージまたはリソースへのパス。 パッケージ アプリの場合、このパラメーターはイメージ ファイルへのパッケージ相対パスです。 パッケージ化されていない場合、このパラメーターはバイナリ ファイル (DLL、EXE) とリソース インデックスのリテラル ファイルパスです。

displayName
String

Platform::String

winrt::hstring

この表示名は、URI スキームに Windows によって使用されます。

exePath
String

Platform::String

winrt::hstring

アクティブ化する実行可能ファイルへのパス。 空の文字列を渡すと、現在の exectuable が既定でアクティブになります。 通常、このメソッドの呼び出し元がアプリ自体ではなくアプリのインストーラーである場合、このパラメーターが指定されます。

属性

適用対象

こちらもご覧ください