ToastButton.AddArgument Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.ToastButton AddArgument(string key);
abstract member AddArgument : string -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.AddArgument : string -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function AddArgument (key As String) As ToastButton
Parameters
- key
- String
The key.
Returns
The current instance of ToastButton
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.ToastButton AddArgument(string key, bool value);
abstract member AddArgument : string * bool -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.AddArgument : string * bool -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function AddArgument (key As String, value As Boolean) As ToastButton
Parameters
- key
- String
The key for this value.
- value
- Boolean
The value itself.
Returns
The current instance of ToastButton
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.ToastButton AddArgument(string key, double value);
abstract member AddArgument : string * double -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.AddArgument : string * double -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function AddArgument (key As String, value As Double) As ToastButton
Parameters
- key
- String
The key for this value.
- value
- Double
The value itself.
Returns
The current instance of ToastButton
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.ToastButton AddArgument(string key, Enum value);
abstract member AddArgument : string * Enum -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.AddArgument : string * Enum -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function AddArgument (key As String, value As Enum) As ToastButton
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 ToastButton
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.ToastButton AddArgument(string key, int value);
abstract member AddArgument : string * int -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.AddArgument : string * int -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function AddArgument (key As String, value As Integer) As ToastButton
Parameters
- key
- String
The key for this value.
- value
- Int32
The value itself.
Returns
The current instance of ToastButton
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.ToastButton AddArgument(string key, float value);
abstract member AddArgument : string * single -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.AddArgument : string * single -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function AddArgument (key As String, value As Single) As ToastButton
Parameters
- key
- String
The key for this value.
- value
- Single
The value itself.
Returns
The current instance of ToastButton
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.ToastButton AddArgument(string key, string value);
abstract member AddArgument : string * string -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
override this.AddArgument : string * string -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function AddArgument (key As String, value As String) As ToastButton
Parameters
- key
- String
The key for this value.
- value
- String
The value itself.
Returns
The current instance of ToastButton