ActivationRegistrationManager 类

定义

提供可用于注册和注销应用特定激活类型的静态方法。

public ref class ActivationRegistrationManager abstract sealed
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class ActivationRegistrationManager final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AppLifecycle.AppLifecycleContract, 65536)]
class ActivationRegistrationManager final
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public static class ActivationRegistrationManager
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AppLifecycle.AppLifecycleContract), 65536)]
public static class ActivationRegistrationManager
Public Class ActivationRegistrationManager
继承
Object Platform::Object IInspectable ActivationRegistrationManager
属性

示例

有关演示如何使用此类的代码示例,请参阅 Rich activation

注解

有关使用此类的详细信息,请参阅 Rich activation

方法

RegisterForFileTypeActivation(String[], String, String, String[], String)

注册以在通过 ShellExecuteLauncher.LaunchFileAsync 或命令行打开指定文件类型时激活应用。

RegisterForProtocolActivation(String, String, String, String)

注册以在通过 ShellExecuteLauncher.LaunchUriAsync 或命令行执行指定的 URI 方案时激活应用。

RegisterForStartupActivation(String, String)

注册以激活应用时,当用户登录到 Windows OS 时,由于注册表项或已知启动文件夹中的快捷方式。

UnregisterForFileTypeActivation(String[], String)

注销之前使用 RegisterForFileTypeActivation 方法注册的文件类型激活。

UnregisterForProtocolActivation(String, String)

注销之前使用 RegisterForProtocolActivation 方法注册的协议激活。

UnregisterForStartupActivation(String)

取消注册之前使用 RegisterForStartupActivation 方法注册的启动激活。

适用于

另请参阅