Compartir a través de


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