ServiceRecordAttributeIds Property

Get a list of the numerical IDs of the Attributes in the record as an IListT of ServiceAttributeId.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public IList<ServiceAttributeId> AttributeIds { get; }

Property Value

IListServiceAttributeId

Remarks

This method will likely be only rarely used: instead one would generally want either to read a specific attribute using GetAttributeById(ServiceAttributeId), or read every attribute by using ServiceRecord's IEnumerable ability e.g.
VB
For Each curAttr As ServiceAttribute In record
   If curAttr.Id = UniversalAttributeId.ProtocolDescriptorList Then
   ...
Next

Note, for NETCFv1 this returns an instance of the non-Generic list IList.

Example

In C#:
C#
IList<ServiceAttributeId> ids = record.GetAttributeIds();
In VB.NET:
VB
Dim ids As IList(Of ServiceAttributeId) = record.GetAttributeIds()
Or without Generics in .NET 1.1 (NETCFv1) in VB.NET:
VB
Dim ids As IList = record.GetAttributeIds()

See Also