ToastContentBuilder.AddHeader 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
AddHeader(String, String, String) |
Add a header to a toast. |
AddHeader(String, String, ToastArguments) |
Add a header to a toast. |
AddHeader(String, String, String)
Add a header to a toast.
public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddHeader (string id, string title, string arguments);
member this.AddHeader : string * string * string -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddHeader (id As String, title As String, arguments As String) As ToastContentBuilder
Parameters
- id
- String
A developer-created identifier that uniquely identifies this header. If two notifications have the same header id, they will be displayed underneath the same header in Action Center.
- title
- String
A title for the header.
- arguments
- String
A developer-defined string of arguments that is returned to the app when the user clicks this header.
Returns
The current instance of ToastContentBuilder
Remarks
More info about toast header: https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/toast-headers
Applies to
AddHeader(String, String, ToastArguments)
Add a header to a toast.
public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddHeader (string id, string title, Microsoft.Toolkit.Uwp.Notifications.ToastArguments arguments);
member this.AddHeader : string * string * Microsoft.Toolkit.Uwp.Notifications.ToastArguments -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddHeader (id As String, title As String, arguments As ToastArguments) As ToastContentBuilder
Parameters
- id
- String
A developer-created identifier that uniquely identifies this header. If two notifications have the same header id, they will be displayed underneath the same header in Action Center.
- title
- String
A title for the header.
- arguments
- ToastArguments
Developer-defined arguments that are returned to the app when the user clicks this header.
Returns
The current instance of ToastContentBuilder
Remarks
More info about toast header: https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/toast-headers