Edit

Share via


ToastButton.SetProtocolActivation Method

Definition

Overloads

SetProtocolActivation(Uri)

Configures the button to launch the specified url when the button is clicked.

SetProtocolActivation(Uri, String)

Configures the button to launch the specified url when the button is clicked.

SetProtocolActivation(Uri)

Configures the button to launch the specified url when the button is clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastButton SetProtocolActivation (Uri protocol);
abstract member SetProtocolActivation : Uri -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.SetProtocolActivation : Uri -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function SetProtocolActivation (protocol As Uri) As ToastButton

Parameters

protocol
Uri

The protocol to launch.

Returns

The current instance of ToastButton

Applies to

SetProtocolActivation(Uri, String)

Configures the button to launch the specified url when the button is clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastButton SetProtocolActivation (Uri protocol, string targetApplicationPfn);
abstract member SetProtocolActivation : Uri * string -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.SetProtocolActivation : Uri * string -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function SetProtocolActivation (protocol As Uri, targetApplicationPfn As String) As ToastButton

Parameters

protocol
Uri

The protocol to launch.

targetApplicationPfn
String

New in Creators Update: The target PFN, so that regardless of whether multiple apps are registered to handle the same protocol uri, your desired app will always be launched.

Returns

The current instance of ToastButton

Applies to