ServiceElementGetValueAsStringUtf8 Method

Get the value of the TextString, when it is encoded as UTF-8.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public string GetValueAsStringUtf8()

Return Value

String
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

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.

See Also