Share via


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

Return value

Type: Microsoft.Exchange.Data.Transport.Delivery.DeliveryAgent
A DeliveryAgent instance.

See also

Reference

DeliveryAgentFactory<Manager> class

DeliveryAgentFactory<Manager> members

Microsoft.Exchange.Data.Transport.Delivery namespace