SmtpReceiveAgentFactory.CreateAgent method
When overridden in a derived class, the CreateAgent method creates an instance of a Simple Mail Transfer Protocol (SMTP) transport agent.
Namespace: Microsoft.Exchange.Data.Transport.Smtp
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Function CreateAgent ( _
server As SmtpServer _
) As SmtpReceiveAgent
'Usage
Dim instance As SmtpReceiveAgentFactory
Dim server As SmtpServer
Dim returnValue As SmtpReceiveAgent
returnValue = instance.CreateAgent(server)
public abstract SmtpReceiveAgent CreateAgent(
SmtpServer server
)
Parameters
server
Type: Microsoft.Exchange.Data.Transport.SmtpServerThe server on which the agent will work.
Return value
Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent