Partager via


RoutingAgentFactory.CreateAgent Method

When overridden in a derived class, the CreateAgent method returns an instance of a routing agent.

Namespace:  Microsoft.Exchange.Data.Transport.Routing
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public MustOverride Function CreateAgent ( _
    server As SmtpServer _
) As RoutingAgent
'Usage
Dim instance As RoutingAgentFactory
Dim server As SmtpServer
Dim returnValue As RoutingAgent

returnValue = instance.CreateAgent(server)
public abstract RoutingAgent CreateAgent(
    SmtpServer server
)

Parameters