다음을 통해 공유


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
public abstract SmtpReceiveAgent CreateAgent (
    SmtpServer server
)
public:
virtual SmtpReceiveAgent^ CreateAgent (
    SmtpServer^ server
) abstract
public abstract SmtpReceiveAgent CreateAgent (
    SmtpServer server
)
public abstract function CreateAgent (
    server : SmtpServer
) : SmtpReceiveAgent

Parameters

  • server
    The server on which the agent will work.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003