Constant Class |
Namespace: Bloomberglp.Blpapi
The Constant type exposes the following members.
Name | Description | |
---|---|---|
Datatype | Gets the Datatype used to represent the value of this Constant.
| |
Description | Gets a String containing a human readable description of this
Constant.
| |
Name | Gets the symbolic name of the constant.
| |
Status | Gets the status of this Constant.
| |
UserData | Gets or sets the user data associated with this Constant.
|
Name | Description | |
---|---|---|
GetValueAsChar | Gets the value of this Constant as a char if it can be converted.
| |
GetValueAsDate | Obsolete. Gets the value of this Constant as a Datetime containing
only a date part if it can be converted.
| |
GetValueAsDatetime | Gets the value of this Constant as a Datetime if it can be converted.
| |
GetValueAsFloat32 | Gets the value of this Constant as a Float32 if it can be converted.
| |
GetValueAsFloat64 | Gets the value of this Constant as a Float64 if it can be converted.
| |
GetValueAsInt32 | Gets the value of this Constant as an Int32 if it can be converted.
| |
GetValueAsInt64 | Gets the value of this Constant as an Int64 if it can be converted.
| |
GetValueAsString | Gets the value of this Constant as a string if it can be converted.
| |
GetValueAsTime | Obsolete. Gets the value of this Constant as a Datetime containing
only a time part if it can be converted.
| |
Print(Stream) | Prints this constant into 'output'.
| |
Print(TextWriter) | Prints this constant into 'writer'.
|
Constants can be any of the following DataTypes: BOOL, CHAR, BYTE, INT32, INT64, FLOAT32, FLOAT64, STRING, DATE, TIME, DATETIME. As well as the constants value this class also provides access to the symbolic name, description and status of the constant.
Constants are read-only and always created by the API, never by the application.