Creates a News headline subscription using a supplied set of subscription parameters.
Declaration Syntax
C# | Visual Basic | Visual C++ |
INewsSubscription CreateNewsSubscription( INewsSubscriptionListener listener, string subject, INewsSubscriptionParameters parameters )
Function CreateNewsSubscription ( _ listener As INewsSubscriptionListener, _ subject As String, _ parameters As INewsSubscriptionParameters _ ) As INewsSubscription
INewsSubscription^ CreateNewsSubscription( INewsSubscriptionListener^ listener, String^ subject, INewsSubscriptionParameters^ parameters )
Parameters
- listener (INewsSubscriptionListener)
- The listener that will receive events relating to the subscribed container.
- subject (String)
- The subject of the news headline (for example "/NEWS").
- parameters (INewsSubscriptionParameters)
- The subscription parameters for the news headlines To obtain an INewsSubscriptionParameters object, first obtain the IParametersFactory associated with the IStreamLinkProvider. Then call a method such as CreateNewsSubscriptionParameters()()() on the IParametersFactory; this will return a valid INewsSubscriptionParameters object.
Return Value
A new News headline subscription.