ServiceRecordGetAttributeById(ServiceAttributeId) Method

Returns the attribute with the given ID.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public ServiceAttribute GetAttributeById(
	ServiceAttributeId id
)

Parameters

id  ServiceAttributeId
The Attribute Id as a ServiceAttributeId.

Return Value

ServiceAttribute
A ServiceAttribute holding the attribute with the specified ID. Is never .

Exceptions

KeyNotFoundException There is no attribute with the given Id in the record. Throws ArgumentException in NETCFv1

See Also