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
server
Type: Microsoft.Exchange.Data.Transport.SmtpServerThe server on which the routing agent will operate.
Return value
Type: Microsoft.Exchange.Data.Transport.Routing.RoutingAgent