FeedManager.TryShowAnnouncement(String, String, FeedAnnouncement) 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.
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.