Bloomberg API for .NET
GenerateToken Method (correlationId, eventQueue)
NamespacesBloomberglp.BlpapiAbstractSessionGenerateToken(CorrelationID, EventQueue)
Return a generated token to be used for authorization.
Declaration Syntax
C#Visual BasicVisual C++
public CorrelationID GenerateToken(
	CorrelationID correlationId,
	EventQueue eventQueue
)
Public Function GenerateToken ( 
	correlationId As CorrelationID,
	eventQueue As EventQueue
) As CorrelationID
public:
CorrelationID^ GenerateToken(
	CorrelationID^ correlationId, 
	EventQueue^ eventQueue
)
Parameters
correlationId (CorrelationID)
eventQueue (EventQueue)
Return Value
CorrelationID
a CorrelationID for this asynchronous openService request.
Remarks
Generate a token to be used for authorization
Exceptions
ExceptionCondition
InvalidOperationException Session is not started.
ArgumentException Invalid authentication option is specified in session option or there is failure to get authentication information based on authentication option.
DuplicateCorrelationIDException The specified correlationId is already active for this Session.

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