我使用以下代码在系统上布局网络驱动器。我想为持久性添加第三列,但在 vb.net 中我不知道如何检查驱动器是否具有持久性映射。有什么建议么?
For Each drive_info As DriveInfo In DriveInfo.GetDrives()
If drive_info.DriveType().ToString = "Network" Then
With maps.Items.Add(drive_info.Name)
.SubItems.Add(drive_info.DriveType().ToString)
End With
End If
Next drive_info