In The Hand
GetValueAsStringUtf8 Method
NamespacesInTheHand.Net.BluetoothServiceElementGetValueAsStringUtf8()()()
.NET Components for Mobility
Get the value of the TextString, when it is encoded as UTF-8.
Declaration Syntax
C#Visual Basic
public string GetValueAsStringUtf8()
Public Function GetValueAsStringUtf8 As String
Return Value
A String holding the value of the TextString from the service element.
Remarks
Note: a strict decoding is used. Thus if the value is not in UTF-8 encoding or has been encoded incorrectly an error will occur.
Exceptions
ExceptionCondition
DecoderFallbackException If the value in the service element is not a valid string in the given encoding. On NETCF, an ArgumentException is thrown; not that ArgumentException is the base class of the DecoderFallbackException exception.
InvalidOperationException The service element is not of type TextString.

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 3.0.0.0