Click or drag to resize
RequestTemplate Interface
This class provides a handle for a request template.

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.15.0.1
Syntax
public interface RequestTemplate

The RequestTemplate type exposes the following members.

Methods
  NameDescription
Public methodclose
Close the request template handle and release resources when possible.
Top
Remarks

Request templates are obtained from a Session and should be always used with the session that creates the template. When a session is terminated, any request templates associated with that session become invalid. Results of sending or canceling of invalid requests templates is undefined.

In order to send a request represented by a template, the SendRequest(RequestTemplate, CorrelationID) method should be called with the 'RequestTemplate' object passed as the first argument.

All handles should be closed by calling close method for releasing resources when a request template is no longer needed.

Check createSnapshotRequestTemplate(String, CorrelationID, Identity) for details about creation and management of snapshot request templates.

Usage example:
RequestTemplate requestTemplate
     = session.createSnapshotRequestTemplate(
          "//blp/mktdata/ticker/IBM US Equity,
          statusCorrelationId,
          identity);
session.sendRequestTemplate(requestTemplate);
requestTemplate.close();
See Also