Partager via


HostedEmailConfigureFault Enumeration

 

Contains a series of possible issues when configuring a hosted email service.

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

Syntax

[DataContractAttribute]
public enum HostedEmailConfigureFault
[DataContractAttribute]
public enum class HostedEmailConfigureFault
<DataContractAttribute>
Public Enumeration HostedEmailConfigureFault

Members

Member name Description
AdaptorError

An adapter error occurred.

AlreadyActivated

The specified hosted email add-in was already activated.

EmailAccountNotExist

The specified email account does not exist.

EmailAlreadyAssigned

The email address is already assigned to another account.

InvalidAddinConfiguration

The configuration you have supplied for the hosted email add-in is invalid.

LoadAdaptorFailed

The adapter failed to load.

LocalProviderIssue

An issue has occurred with the provider on the local machine.

MismatchAddinId

A mismatch has occurred with the add-in ID.

NotActivated

The specified hosted email ad-in is not activated.

NotSupportedAPI

The API that was called is not supported by the hosted email add-in.

Unexpected

An unexpected error has occurred.

WssUserAlreadyAssigned

The Windows Server user name is already in use by another account.

WssUserNotAssigned

The specified Windows Server user name was not assigned.

WssUserNotExist

The specified Windows User does not exist.

Remarks

This enumeration is usually used as part of a HostedEmailConfigurationException call, when describing an error that occurred regarding configuration values.

Examples

The following sample describes using a HostedEmailConfigureFault value when examining a HostedEmailProviderException. In this example, the inner exception is likely a HostedEmailConfigurationException, but is cast as a HostedEmailProviderException. For the complete sample, see Quickstart: Creating a Hosted Email Adapter.

internal void StartLoadingData()
 {
     ShowSplash();
     ThreadPool.QueueUserWorkItem((state) =>
         {
             // Load email account bound with wss user
             try
             {
                 LoadEmailAccountInfo(this.propertyBag.UserName);
             }
             catch (InvalidOperationException)
             {
                 ShowError();
             }
             catch (OperationInvokeException e)
             {
                 HostedEmailProviderException hepe = e.InnerException as HostedEmailProviderException;
                 if (hepe != null && hepe.Fault == HostedEmailConfigureFault.WssUserNotAssigned)
                 {
                     ShowNoEmailAccountAssigned();
                 }
                 else
                 {
                     ShowError();
                 }
                 return;
             }

             // Load distribution groups
             LoadDistributionGroups();

             OnDataLoaded();
         });
 }

See Also

Microsoft.WindowsServerSolutions.HostedEmail Namespace

Return to top