Bloomberg API for .NET
CreateTopics Method (topicList, resolveMode, providerIdentity)
NamespacesBloomberglp.BlpapiProviderSessionCreateTopics(TopicList, ResolveMode, Identity)
Creates the topics in the specified 'topicList' and updates the 'topicList' with the results of the resolution and creation process.
Declaration Syntax
C#Visual BasicVisual C++
public void CreateTopics(
	TopicList topicList,
	ResolveMode resolveMode,
	Identity providerIdentity
)
Public Sub CreateTopics ( 
	topicList As TopicList,
	resolveMode As ResolveMode,
	providerIdentity As Identity
)
public:
void CreateTopics(
	TopicList^ topicList, 
	ResolveMode resolveMode, 
	Identity^ providerIdentity
)
Parameters
topicList (TopicList)
resolveMode (ResolveMode)
providerIdentity (Identity)
Remarks
If the specified 'resolveMode' is ResolveMode.DONT_REGISTER_SERVICES, then all the services referenced in the topics in the 'topicList' must already have been registered using registerService(). If 'resolveMode' is ResolveMode.AUTO_REGISTER_SERVICES, then the specified 'providerIdentity' should be supplied and ProviderSession will automatically attempt to register any services reference in the topics in the 'topicList' that have not already been registered. Once createTopics() returns each entry in the 'topicList' will have been updated with a new status.

Before createTopics() returns one or more EventType.RESOLUTION_STATUS events and, if 'resolveMode' is ResolveMode.AUTO_REGISTER_SERVICES, zero or more EventType.SERVICE_STATUS, and zero or more EventType.TOPIC_STATUS events are generated. If this is an asynchronous ProviderSession then these Events may be processed by the registered EventHandler before createTopics() has returned.

Exceptions
ExceptionCondition
DuplicateCorrelationIDException The specified correlationId in 'topicList' is not unique.
InvalidOperationException The session is not started.
DuplicateCorrelationIDException The specified correlationId in 'topicList' is not unique.
ThreadInterruptedException The current thread is interrupted while it is waiting for response.

Assembly: Bloomberglp.Blpapi (Module: Bloomberglp.Blpapi.dll) Version: 3.9.6.1