Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DeviceAgentTransportFactory Class