Share via


FeedManager.TryShowAnnouncement(String, String, FeedAnnouncement) Method

Definition

Requests that an announcement be shown in the taskbar. The feeds host may or may not show this announcement, based on its policies. If the user interacts with the announcement, the feed provider's OnAnnouncementInvoked method will be called.

public:
 virtual void TryShowAnnouncement(Platform::String ^ feedProviderDefinitionId, Platform::String ^ feedDefinitionId, FeedAnnouncement ^ announcement) = TryShowAnnouncement;
void TryShowAnnouncement(winrt::hstring const& feedProviderDefinitionId, winrt::hstring const& feedDefinitionId, FeedAnnouncement const& announcement);
public void TryShowAnnouncement(string feedProviderDefinitionId, string feedDefinitionId, FeedAnnouncement announcement);
function tryShowAnnouncement(feedProviderDefinitionId, feedDefinitionId, announcement)
Public Sub TryShowAnnouncement (feedProviderDefinitionId As String, feedDefinitionId As String, announcement As FeedAnnouncement)

Parameters

feedProviderDefinitionId
String

Platform::String

winrt::hstring

The definition ID of the feed provider. This is the value specified in the Id attribute of the FeedProvider element in the provider's package manifest file. For more information see Feed provider package manifest XML format.

feedDefinitionId
String

Platform::String

winrt::hstring

The definition ID of the feed. This is the value specified in the Id attribute of the Definition element in the provider's package manifest file. For more information see Feed provider package manifest XML format.

announcement
FeedAnnouncement

A FeedAnnouncement object that provides the data for the announcement to be displayed.

Implements

M:Microsoft.Windows.Widgets.Feeds.Providers.IFeedManager2.TryShowAnnouncement(System.String,System.String,Microsoft.Windows.Widgets.Notifications.FeedAnnouncement) M:Microsoft.Windows.Widgets.Feeds.Providers.IFeedManager2.TryShowAnnouncement(Platform::String,Platform::String,Microsoft.Windows.Widgets.Notifications.FeedAnnouncement) M:Microsoft.Windows.Widgets.Feeds.Providers.IFeedManager2.TryShowAnnouncement(winrt::hstring,winrt::hstring,Microsoft.Windows.Widgets.Notifications.FeedAnnouncement)

Applies to