Returns the attribute with the given ID.
| C# | Visual Basic |
public ServiceAttribute GetAttributeById( ServiceAttributeId id )
Public Function GetAttributeById ( _ id As ServiceAttributeId _ ) As ServiceAttribute
- id (ServiceAttributeId)
[Missing <param name="id"/> documentation for "M:InTheHand.Net.Bluetooth.ServiceRecord.GetAttributeById(InTheHand.Net.Bluetooth.ServiceAttributeId)"]
A ServiceAttribute holding
the attribute with the specified ID.
Is never nullNothingnullptr.
| Exception | Condition |
|---|---|
| KeyNotFoundException |
There is no attribute with the given Id in the record.
Throws ArgumentException in NETCFv1
|