Click or drag to resize
AbstractSessionOpenService Method
Opens the service identified by serviceName.

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.11.1
Syntax
public bool OpenService(
	string serviceName
)

Parameters

serviceName
Type: SystemString
The name of the service that is to be opened.

Return Value

Type: Boolean
true if service was successfully opened false otherwise.

Implements

IAbstractSessionOpenService(String)
Exceptions
ExceptionCondition
InvalidOperationException The session is not started.
ThreadInterruptedException The current thread is interrupted while it is waiting for service.
Remarks

serviceName must be a fully qualified service name. That is, it must be of the form "//[namespace]/[service-name]". Note that this operation is a blocking operation which may require communication to server-side services. Execution may be be blocked for an undetermined amount of time. If blocking is not desired, then use OpenServiceAsync(String, CorrelationID) instead. Also note that if the service is already opened by this session, the request will succeed immediately.

This method returns true is the service was open successfully false otherwise. Once the request has completed, a SERVICE_STATUS event will be generated indicating the result of the request. If this is an asynchronous Session then this Event may be processed by the registered EventHandler before OpenService() has returned.

See Also

Reference

AbstractSessionOpenService(String)