ServiceElementGetValueAsString(Encoding) Method

Get the value of the TextString, where it is encoded using the given encoding form.

Definition

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

Parameters

encoding  Encoding
The Encoding object to be used to decode the string value if it has been read as a raw byte array.

Return Value

String
A String holding the value of the TextString from the service element.

Exceptions

InvalidOperationException The service element is not of type TextString.

See Also