Partilhar via


Método DeviceAgentTransportFactory.GetAgentTransport

Cria dinamicamente uma instância de agente de dispositivo, cujo tipo implementa o IDeviceAgentTransport interface.

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

Sintaxe

Public Shared Function GetAgentTransport As IDeviceAgentTransport

Dim returnValue As IDeviceAgentTransport

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

Valor de retorno

Tipo: Microsoft.SmartDevice.DeviceAgentTransport.IDeviceAgentTransport
Um objeto IDeviceAgentTransport.

Comentários

Use o IDeviceAgentTransport para aceitar conexões e criar fluxos do dispositivo ao computador de desenvolvimento.

Exemplos

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

Permissões

Consulte também

Referência

DeviceAgentTransportFactory Classe

Membros DeviceAgentTransportFactory

Namespace Microsoft.SmartDevice.DeviceAgentTransport