Share via


HostedEmailIntegrationManager.IsEnabled Method ()

 

Retrieves a value that indicates whether the current hosted email add-in is enabled.

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

Syntax

public static bool IsEnabled()
public:
static bool IsEnabled()
Public Shared Function IsEnabled As Boolean

Return Value

Type: System.Boolean

true if the current hosted email add-in is enabled; otherwise, false.

Examples

The following code describes using IsEnabled as part of a check to confirm that the specified hosted email add-in has been enabled. For the complete example, see Quickstart: Creating a Hosted Email Adapter.

private static bool ContosoEmailEnabled
{
    get
    {
        return (HostedEmailIntegrationManager.IsEnabled() && HostedEmailIntegrationManager.EnabledAddinId.Equals(Constants.AdaptorId));
    }
}

See Also

HostedEmailIntegrationManager Class
Microsoft.WindowsServerSolutions.HostedEmail Namespace

Return to top