Share via


HostedEmailIntegrationManager.Configuration Property

 

Retrieves the configuration information of the current hosted email add-in.

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

Syntax

public static HostedEmailConfiguration Configuration { get; }
public:
property HostedEmailConfiguration^ Configuration {
    static HostedEmailConfiguration^ get();
}
Public Shared ReadOnly Property Configuration As HostedEmailConfiguration

Property Value

Type: Microsoft.WindowsServerSolutions.HostedEmail.HostedEmailConfiguration

A HostedEmailConfiguration containing the hosted email configuration information.

Examples

The following example describes using the Configuration property to retrieve the service user portal information. For the complete example, see Quickstart: Creating a Hosted Email Adapter.

private static AsyncUiTask CreateVisitMyAccountTask()
{
    AsyncUiTask task = new AsyncUiTask(
        UIConstants.VisitMyAccountTask,
        Resources.ContosoServicesVisitMyAccountTask_DisplayName,
        delegate(object obj)
        {
            Uri userPortal = null; 
            if (ContosoEmailEnabled)
            {
                userPortal = HostedEmailIntegrationManager.Configuration.Service.ServiceUserPortal;
            }                 
            if(userPortal == null)
            {

                userPortal = new Uri(Resources.ContosoServices_DefaultUserPortal);
            }
            System.Diagnostics.Process.Start(userPortal.ToString());

            return null;
        },
        true //global task
    );
    return task;
}

See Also

HostedEmailIntegrationManager Class
Microsoft.WindowsServerSolutions.HostedEmail Namespace

Return to top