Partager via


IHostedEmailAdaptor.Deactivate Method (IDictionary<String, String>)

 

Deactivates the hosted email adapter.

Namespace:   Microsoft.WindowsServerSolutions.HostedEmail
Assembly:  Wssg.HostedEmailBase (in Wssg.HostedEmailBase.dll)

Syntax

void Deactivate(
    IDictionary<string, string> extendedParameters
)
void Deactivate(
    IDictionary<String^, String^>^ extendedParameters
)
Sub Deactivate (
    extendedParameters As IDictionary(Of String, String)
)

Parameters

Remarks

This method is called when Disable is called.

This method should implement general clean-up tasks, and is called immediately before the system unloads the IHostedEmailAdapter. In your implementation, be sure to perform the following tasks:

  1. Clear your storage of the connection information you stored for Activate.

  2. Any other clean-up tasks.

Examples

The following code implements Deactivate. For the complete code sample, see Quickstart: Creating a Hosted Email Adapter.

public void Deactivate(IDictionary<string, string> extendedParameters)
 {
     lock (this)
     {
         CredentialManager.ClearAll();
     }
 }

See Also

IHostedEmailAdaptor Interface
Microsoft.WindowsServerSolutions.HostedEmail Namespace

Return to top