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.SmtpServerThe SMTP mail server that delivery agent handles messages from.
Return value
Type: Microsoft.Exchange.Data.Transport.Delivery.DeliveryAgent
A DeliveryAgent instance.
See also
Reference
DeliveryAgentFactory<Manager> class