DeliveryAgentFactory<Manager>.CreateAgent Method
The CreateAgent(SmtpServer) method creates a new DeliveryAgent instance for the specified server.
Namespace: Microsoft.Exchange.Data.Transport.Delivery
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Function CreateAgent ( _
server As SmtpServer _
) As DeliveryAgent
'Usage
Dim instance As DeliveryAgentFactory
Dim server As SmtpServer
Dim returnValue As DeliveryAgent
returnValue = instance.CreateAgent(server)
public abstract DeliveryAgent CreateAgent(
SmtpServer server
)
Parameters
- server
Type: Microsoft.Exchange.Data.Transport.SmtpServer
The SMTP mail server that delivery agent handles messages from.
Return Value
Type: Microsoft.Exchange.Data.Transport.Delivery.DeliveryAgent
A DeliveryAgent instance.