RasDevice.GetDevicesByType Method

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Lists all remote access capable devices for the specified device type.

Namespace: DotRas
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)

Syntax

C#
[ObsoleteAttribute("This method will be removed in a future version, please use the GetDevices method to find the devices.", 
	false)]
public static ReadOnlyCollection<RasDevice> GetDevicesByType(
	RasDeviceType deviceType
)
Visual Basic
<ObsoleteAttribute("This method will be removed in a future version, please use the GetDevices method to find the devices.", 
	false)> 
Public Shared Function GetDevicesByType ( 
	deviceType As RasDeviceType
) As ReadOnlyCollection(Of RasDevice)
Visual C++
public:
[ObsoleteAttribute(L"This method will be removed in a future version, please use the GetDevices method to find the devices.", 
	false)]
static ReadOnlyCollection<RasDevice^>^ GetDevicesByType(
	RasDeviceType deviceType
)
F#
[<ObsoleteAttribute("This method will be removed in a future version, please use the GetDevices method to find the devices.", 
	false)>]
static member GetDevicesByType : 
        deviceType : RasDeviceType -> ReadOnlyCollection<RasDevice> 

Parameters

deviceType
Type: DotRas..::..RasDeviceType
The RasDeviceType of the device(s) to retrieve.

Return Value

Type: ReadOnlyCollection<(Of <(<'RasDevice>)>)>
A new read-only collection of RasDevice objects, or an empty collection if no devices were found.

See Also