ActivationRegistrationManager.RegisterForStartupActivation メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
レジストリ キーまたは既知のスタートアップ フォルダー内のショートカットが原因で、ユーザーが Windows OS にログインしてアプリを起動したときに、アプリをアクティブ化するために登録します。
public:
static void RegisterForStartupActivation(Platform::String ^ taskId, Platform::String ^ exePath);
/// [Windows.Foundation.Metadata.Experimental]
static void RegisterForStartupActivation(winrt::hstring const& taskId, winrt::hstring const& exePath);
static void RegisterForStartupActivation(winrt::hstring const& taskId, winrt::hstring const& exePath);
[Windows.Foundation.Metadata.Experimental]
public static void RegisterForStartupActivation(string taskId, string exePath);
public static void RegisterForStartupActivation(string taskId, string exePath);
function registerForStartupActivation(taskId, exePath)
Public Shared Sub RegisterForStartupActivation (taskId As String, exePath As String)
パラメーター
- taskId
-
String
Platform::String
winrt::hstring
UnregisterForStartupActivation メソッドを使用して、後でスタートアップ のアクティブ化の登録を解除するために使用できるアプリ定義 ID。
- exePath
-
String
Platform::String
winrt::hstring
アクティブ化する実行可能ファイルへのパス。 空の文字列を渡すと、現在の exectuable が既定でアクティブになります。 通常、このメソッドの呼び出し元がアプリ自体ではなくアプリのインストーラーである場合、このパラメーターが指定されます。
- 属性
適用対象
こちらもご覧ください
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示