Bloomberg API for .NET
Constant Class
NamespacesBloomberglp.BlpapiConstant
Represents a constant value in the schema.
Declaration Syntax
C#Visual BasicVisual C++
public abstract class Constant
Public MustInherit Class Constant
public ref class Constant abstract
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
Constant()()()()
Initializes a new instance of the Constant class

Datatype
Gets the Datatype used to represent the value of this Constant.

Description
Gets a String containing a human readable description of this Constant.

GetValueAsChar()()()()
Gets the value of this Constant as a char if it can be converted.

GetValueAsDate()()()() Obsolete.
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.
Name
Gets the symbolic name of the constant.

Print(Stream)
Prints this constant into 'output'.

Print(TextWriter)
Prints this constant into 'writer'.

Status
Gets the status of this Constant.

UserData
Gets or sets the user data associated with this Constant.

Remarks

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.

Thread Safety
Constant is safe for multithreaded operations except for SetUserData and Userdata methods.
Inheritance Hierarchy
Object
Constant

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