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