ActivationRegistrationManager.RegisterForFileTypeActivation メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ShellExecute、Launcher.LaunchFileAsync、またはコマンド ラインを使用して、指定したファイルの種類を開いたときにアプリをアクティブ化するために登録します。
public:
static void RegisterForFileTypeActivation(Platform::Array <Platform::String ^> ^ supportedFileTypes, Platform::String ^ logo, Platform::String ^ displayName, Platform::Array <Platform::String ^> ^ supportedVerbs, Platform::String ^ exePath);
/// [Windows.Foundation.Metadata.Experimental]
static void RegisterForFileTypeActivation(winrt::array_view <winrt::hstring const&> const& supportedFileTypes, winrt::hstring const& logo, winrt::hstring const& displayName, winrt::array_view <winrt::hstring const&> const& supportedVerbs, winrt::hstring const& exePath);
static void RegisterForFileTypeActivation(winrt::array_view <winrt::hstring const&> const& supportedFileTypes, winrt::hstring const& logo, winrt::hstring const& displayName, winrt::array_view <winrt::hstring const&> const& supportedVerbs, winrt::hstring const& exePath);
[Windows.Foundation.Metadata.Experimental]
public static void RegisterForFileTypeActivation(string[] supportedFileTypes, string logo, string displayName, string[] supportedVerbs, string exePath);
public static void RegisterForFileTypeActivation(string[] supportedFileTypes, string logo, string displayName, string[] supportedVerbs, string exePath);
function registerForFileTypeActivation(supportedFileTypes, logo, displayName, supportedVerbs, exePath)
Public Shared Sub RegisterForFileTypeActivation (supportedFileTypes As String(), logo As String, displayName As String, supportedVerbs As String(), exePath As String)
パラメーター
- supportedFileTypes
-
String[]
Platform::String[]
winrt::hstring[]
など、先頭 .
の を .docx
含むファイル拡張子で指定された 1 つ以上のサポートされるファイルの種類。
- logo
-
String
Platform::String
winrt::hstring
ファイルの種類に対して Windows によって使用されるイメージまたはリソースへのパス。 パッケージ アプリの場合、このパラメーターはイメージ ファイルへのパッケージ相対パスです。 パッケージ化されていない場合、このパラメーターはバイナリ ファイル (DLL、EXE) とリソース インデックスのリテラル ファイルパスです。
- displayName
-
String
Platform::String
winrt::hstring
ファイルの種類に対して Windows によって使用されるこの表示名。
- supportedVerbs
-
String[]
Platform::String[]
winrt::hstring[]
0 個以上のアプリ定義動詞。 登録されたファイルを右クリックすると、各動詞がエクスプローラーコンテキスト メニューに追加され、選択した動詞が IFileActivatedEventArgs.Verb プロパティとしてアプリに渡されます。
- exePath
-
String
Platform::String
winrt::hstring
アクティブ化する実行可能ファイルへのパス。 空の文字列を渡すと、現在の exectuable が既定でアクティブになります。 通常、このメソッドの呼び出し元がアプリ自体ではなくアプリのインストーラーである場合、このパラメーターが指定されます。
- 属性
注釈
UnregisterForFileTypeActivation
適用対象
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示