Get the value of the TextString,
when it is encoded as specified by the given IETF Charset identifer.
| C# | Visual Basic |
public string GetValueAsString( LanguageBaseItem languageBase )
Public Function GetValueAsString ( _ languageBase As LanguageBaseItem _ ) As String
- languageBase (LanguageBaseItem)
[Missing <param name="languageBase"/> documentation for "M:InTheHand.Net.Bluetooth.ServiceElement.GetValueAsString(InTheHand.Net.Bluetooth.LanguageBaseItem)"]
A String holding the value of the
TextString
from the service element.
Note that a strict decoding of the string is carried out
(except on the NETCF where it is not supported).
Thus if the value is not in the specified encoding, or has been
encoded incorrectly, then an error will occur.
| Exception | Condition |
|---|---|
| InvalidOperationException |
The service element is not of type
TextString.
|
| DecoderFallbackException |
If the value in the service element is not a valid string in the given encoding.
|