ServiceRecordGetEnumerator Method

Gets an enumerator that can be used to navigate through the record's list of ServiceAttributes.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public IEnumerator<ServiceAttribute> GetEnumerator()

Return Value

IEnumeratorServiceAttribute
An IEnumeratorT of type ServiceAttribute.

Implements

IEnumerableTGetEnumerator

Example

In C#:
C#
foreach (ServiceAttribute curAttr in record) {
   if (curAttr.Id == UniversalAttributeId.ProtocolDescriptorList) {
   ...
}
In Visual Basic:
VB
For Each curAttr As ServiceAttribute In record
   If curAttr.Id = UniversalAttributeId.ProtocolDescriptorList Then
   ...
Next

See Also