StreamLink.NET
CreateNewsSubscription Method (listener, subject, parameters)
StreamLink.NETCaplin.StreamLinkIStreamLinkProviderCreateNewsSubscription(INewsSubscriptionListener, String, INewsSubscriptionParameters)
Creates a News headline subscription using a supplied set of subscription parameters.
Declaration Syntax
C#Visual BasicVisual 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.

Assembly: Caplin.StreamLink (Module: Caplin.StreamLink) Version: 5.0.22.0 (5.0.22.0)