Share via


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

Return value

Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent

See also

Reference

SmtpReceiveAgentFactory class

SmtpReceiveAgentFactory members

Microsoft.Exchange.Data.Transport.Smtp namespace