ToastContentBuilder.AddArgument Method

Definition

Overloads

AddArgument(String)

Adds a key (without value) to the activation arguments that will be returned when the toast notification or its buttons are clicked.

AddArgument(String, Boolean)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

AddArgument(String, Double)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

AddArgument(String, Enum)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

AddArgument(String, Int32)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

AddArgument(String, Single)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

AddArgument(String, String)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

AddArgument(String)

Adds a key (without value) to the activation arguments that will be returned when the toast notification or its buttons are clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddArgument (string key);
abstract member AddArgument : string -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
override this.AddArgument : string -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddArgument (key As String) As ToastContentBuilder

Parameters

key
String

The key.

Returns

The current instance of ToastContentBuilder

Applies to

AddArgument(String, Boolean)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddArgument (string key, bool value);
abstract member AddArgument : string * bool -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
override this.AddArgument : string * bool -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddArgument (key As String, value As Boolean) As ToastContentBuilder

Parameters

key
String

The key for this value.

value
Boolean

The value itself.

Returns

The current instance of ToastContentBuilder

Applies to

AddArgument(String, Double)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddArgument (string key, double value);
abstract member AddArgument : string * double -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
override this.AddArgument : string * double -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddArgument (key As String, value As Double) As ToastContentBuilder

Parameters

key
String

The key for this value.

value
Double

The value itself.

Returns

The current instance of ToastContentBuilder

Applies to

AddArgument(String, Enum)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddArgument (string key, Enum value);
abstract member AddArgument : string * Enum -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
override this.AddArgument : string * Enum -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddArgument (key As String, value As Enum) As ToastContentBuilder

Parameters

key
String

The key for this value.

value
Enum

The value itself. Note that the enums are stored using their numeric value, so be aware that changing your enum number values might break existing activation of toasts currently in Action Center.

Returns

The current instance of ToastContentBuilder

Applies to

AddArgument(String, Int32)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddArgument (string key, int value);
abstract member AddArgument : string * int -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
override this.AddArgument : string * int -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddArgument (key As String, value As Integer) As ToastContentBuilder

Parameters

key
String

The key for this value.

value
Int32

The value itself.

Returns

The current instance of ToastContentBuilder

Applies to

AddArgument(String, Single)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddArgument (string key, float value);
abstract member AddArgument : string * single -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
override this.AddArgument : string * single -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddArgument (key As String, value As Single) As ToastContentBuilder

Parameters

key
String

The key for this value.

value
Single

The value itself.

Returns

The current instance of ToastContentBuilder

Applies to

AddArgument(String, String)

Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddArgument (string key, string value);
abstract member AddArgument : string * string -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
override this.AddArgument : string * string -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddArgument (key As String, value As String) As ToastContentBuilder

Parameters

key
String

The key for this value.

value
String

The value itself.

Returns

The current instance of ToastContentBuilder

Applies to