Share via


DeviceAgentTransportFactory Class

Used to get objects that implement IDeviceAgentTransport.

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

Syntax

'Declaration
Public NotInheritable Class DeviceAgentTransportFactory
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class DeviceAgentTransportFactory
public ref class DeviceAgentTransportFactory abstract sealed
public final class DeviceAgentTransportFactory

Remarks

Do not create objects of this type. The purpose of this class is to get objects that implement IDeviceAgentTransport.

Use 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();

Inheritance Hierarchy

System.Object
  Microsoft.SmartDevice.DeviceAgentTransport.DeviceAgentTransportFactory

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DeviceAgentTransportFactory Members

Microsoft.SmartDevice.DeviceAgentTransport Namespace