다음을 통해 공유


AgentFactory.Close Method

When overridden in a derived class, the Close method releases all resources used by the derived class.

Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

'Declaration
Public Overridable Sub Close
public virtual void Close ()
public:
virtual void Close ()
public void Close ()
public function Close ()

Remarks

The Close method is called during shutdown of the transport services. Perform any cleanup that is required by your agent in this method.

Note

The transport service waits 90 seconds for the shutdown process to finish before it performs a hard exit. If the Close method has not been called or has not finished before the hard exit, the cleanup for your agent will be incomplete. You should perform cleanup in both the Close method and the AgentFactory constructor for your agent.

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