AxMmServer.Tlv
In C#, VB.Net, C++ and other compiled languages the namespace for most classes is AXMMCFGLib instead of AxMmServer. For interpreted languages like VBScript, JavaScript or Powershell it is AxMmServer.
TLVs (Tag, Length, Value) are optional data which can be sent or received with an SMS message when using the SMPP channel.
While there are a number of TLVs suggested in the SMPP specification, they are mainly meant to support future or provider specific requirements.
To find out how to use a TLV or what type of information is contained in the value part, the Tag should be looked up in either the SMPP specification
or your provider specific documentation.
| Property | Type | Read/Write | Description |
| Length | Number | The length of the Value part | |
| Tag | Number | The tag value for this TLV | |
| ValueAsString | String | A string representation of this TLV value | |
| ValueAsHexString | String | A binary representation of this TLV value | |
| ValueAsInt32 | Number | A 32 bit unsigned integer representation of this TLV value | |
| ValueAsInt16 | Number | A 16 bit unsigned integer representation of this TLV value | |
| ValueAsInt8 | Number | An 8 bit unsigned integer representation of this TLV value |
| Method | Description |
| Clear | Clears the TLV tag, length and value |
Length property
The length of the Value part. This property is read-only.
Tag property
The tag value for this TLV. This is the identifying part of a TLV.
ValueAsString property
A string representation of this TLV value. Before printing this on a console, make sure it is supposed to be a string value by checking the tag
value against your provider’s TLV information.
ValueAsHexString property
A binary representation of this TLV value. The binary is formatted as a hexadecimal string. For example, a TLV value of the string ‘John’ will become:
‘4A6F686E00’.
ValueAsInt32 property
A 32 bit unsigned integer representation of this TLV value.
ValueAsInt16 property
A 16 bit unsigned integer representation of this TLV value.
ValueAsInt8 property
An 8 bit unsigned integer representation of this TLV value.
Clear method
Clears the TLV tag, length and value.