-
October 25th, 2011, 08:02 PM
#1
array, object properties
Code:
'array
Dim adapters As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces
'Need to output names 'adapter.Name' to another array for faster access.
'Iteration, slower
For Each arss As NetworkInterface In adapters
MessageBox.Show(arss.Name)
Next
I would like to put all the network interface names into an array without using iteration (For Each, For i).
Is there a way to get the properties ie. 'Name' of an array object and be able to array.getvalue() their names?
Last edited by StriderH2; October 25th, 2011 at 08:07 PM.
-
October 25th, 2011, 09:31 PM
#2
Re: array, object properties
Why? Unless you have dozens of adapters, just loop thru, and match the name or whatever. For...Each is quite fast
-
October 25th, 2011, 09:37 PM
#3
Re: array, object properties
Never mind I'll try another method.
Last edited by StriderH2; October 25th, 2011 at 09:40 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|