ServiceRecordGetEnumerator Method
Gets an enumerator that can be used to navigate through the record's
list of ServiceAttributes.
Namespace: InTheHand.Net.Bluetooth.SdpAssembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
public IEnumerator<ServiceAttribute> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of ServiceAttribute)
public:
virtual IEnumerator<ServiceAttribute^>^ GetEnumerator() sealed
abstract GetEnumerator : unit -> IEnumerator<ServiceAttribute>
override GetEnumerator : unit -> IEnumerator<ServiceAttribute>
IEnumeratorServiceAttributeAn
IEnumeratorT
of type
ServiceAttribute.
IEnumerableTGetEnumerator
In C#:
foreach (ServiceAttribute curAttr in record) {
if (curAttr.Id == UniversalAttributeId.ProtocolDescriptorList) {
...
}
In Visual Basic:
For Each curAttr As ServiceAttribute In record
If curAttr.Id = UniversalAttributeId.ProtocolDescriptorList Then
...
Next