Share via


DeviceAgentTransportFactory.GetAgentTransport Method

Dynamically creates a device agent instance, whose type implements the IDeviceAgentTransport interface.

Namespace:  Microsoft.SmartDevice.DeviceAgentTransport
Assembly:  Microsoft.SmartDevice.DeviceAgentTransport (in Microsoft.SmartDevice.DeviceAgentTransport.dll)

Syntax

'Declaration
Public Shared Function GetAgentTransport As IDeviceAgentTransport
'Usage
Dim returnValue As IDeviceAgentTransport 

returnValue = DeviceAgentTransportFactory.GetAgentTransport()
public static IDeviceAgentTransport GetAgentTransport()
public:
static IDeviceAgentTransport^ GetAgentTransport()
public static function GetAgentTransport() : IDeviceAgentTransport

Return Value

Type: Microsoft.SmartDevice.DeviceAgentTransport.IDeviceAgentTransport
An IDeviceAgentTransport object.

Remarks

Use the IDeviceAgentTransport to accept connections and create streams from the device to the development computer.

Examples

' Get an instance of Device Agent Transport 
Dim transport As IDeviceAgentTransport = _
    DeviceAgentTransportFactory.GetAgentTransport()
// Get an instance of Device Agent Transport
IDeviceAgentTransport transport = DeviceAgentTransportFactory.GetAgentTransport();

.NET Framework Security

See Also

Reference

DeviceAgentTransportFactory Class

DeviceAgentTransportFactory Members

Microsoft.SmartDevice.DeviceAgentTransport Namespace