Share via


HostedEmailManager Class

 

Contains the object model for the hosted email functions.

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

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.Common.ProviderFramework.ObjectModelBase
    Microsoft.WindowsServerSolutions.Common.ProviderFramework.ObjectModelBaseExtended<TBackEnd>
      Microsoft.WindowsServerSolutions.HostedEmail.HostedEmailManager

Syntax

public class HostedEmailManager : ObjectModelBaseExtended<IHostedEmailProviderBackend>
public ref class HostedEmailManager : ObjectModelBaseExtended<IHostedEmailProviderBackend^>
Public Class HostedEmailManager
    Inherits ObjectModelBaseExtended(Of IHostedEmailProviderBackend)

Constructors

Name Description
System_CAPS_pubmethod HostedEmailManager(Guid)

Creates a new instance of a HostedEmailManager using the specified add-in ID.

Properties

Name Description
System_CAPS_protproperty AutoReconnect

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protproperty BackEnd

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubproperty CachedDomains

Retrieves the cached domains for the email service.

System_CAPS_pubproperty Connected

Gets the status of the connection to the provider.(Inherited from ObjectModelBase.)

System_CAPS_protproperty LogCategory

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

Methods

Name Description
System_CAPS_pubmethod AssignAccount(String, String)

Synchronous call to bind a Windows Server 2012 Essentials user with an email account.

System_CAPS_pubmethod AssignAccountByEmailAddress(String, String)

Synchronous call to bind a Windows Server 2012 Essentials user with an email address.

System_CAPS_pubmethod BeginAssignAccount(String, String, EventHandler<OperationInvokeEventArgs<Boolean>>)

Asynchronous call to bind a Windows Server 2012 Essentials server user with an email account ID.

System_CAPS_pubmethod BeginAssignAccountByEmailAddress(String, String, EventHandler<OperationInvokeEventArgs<Boolean>>)

Asynchronous call to bind an SBS8 server user with an email account.

System_CAPS_pubmethod BeginCreateAccount(String, String, EmailAccountInfo, EventHandler<OperationInvokeEventArgs<EmailAccountInfo>>)

Asynchronous call to create a new email account.

System_CAPS_pubmethod BeginDeleteAccount(String, EventHandler<OperationInvokeEventArgs<Boolean>>)

Asynchronous call to delete email account from the bound Windows Server 2012 Essentials user.

System_CAPS_pubmethod BeginDisableAccount(String, EventHandler<OperationInvokeEventArgs<Boolean>>)

Asynchronous call to disable the email account bound to the specified Windows Server 2012 Essentials user.

System_CAPS_pubmethod BeginEnableAccount(String, EventHandler<OperationInvokeEventArgs<Boolean>>)

Asynchronous call to enable an email account bound to a Windows Server 2012 Essentials user.

System_CAPS_pubmethod BeginGetAccount(String, EventHandler<OperationInvokeEventArgs<EmailAccountInfo>>)

Asynchronous call to retrieve a new email account and bound it with a Windows Server 2012 Essentials user.

System_CAPS_pubmethod BeginGetAllAccounts(EventHandler<OperationInvokeEventArgs<EmailAccountInfo[]>>)

Asynchronous call to retrieve all email accounts.

System_CAPS_pubmethod BeginGetAllAssignedAccounts(EventHandler<OperationInvokeEventArgs<UserEmailInfo[]>>)

Asynchronous call to retrieve all email accounts assigned to Windows Server 2012 Essentials users.

System_CAPS_pubmethod BeginGetAllUnassignedAccounts(EventHandler<OperationInvokeEventArgs<EmailAccountInfo[]>>)

Asynchronous call to get all email accounts not assigned to any user.

System_CAPS_pubmethod BeginGetDomains(EventHandler<OperationInvokeEventArgs<String[]>>)

Asynchronous call to retrieve all domains associated with the email host service.

System_CAPS_pubmethod BeginResetPassword(String, String, EventHandler<OperationInvokeEventArgs<Boolean>>)

Asynchronous call to reset the password of the email account bound with the specified user.

System_CAPS_pubmethod BeginUnassignAccount(String, EventHandler<OperationInvokeEventArgs<Boolean>>)

Asynchronous call to unbind the specified user with a bound email account.

System_CAPS_pubmethod BeginUpdateAccount(String, EmailAccountInfo, EventHandler<OperationInvokeEventArgs<Boolean>>)

Asynchronous call to update email account.

System_CAPS_pubmethod Connect()

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubmethod ConnectAsync()

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod ConvertResult<TResult, TTarget>(OperationInvokeEventArgs<TResult>)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubmethod CreateAccount(String, String, EmailAccountInfo)

Synchronous call to create a new email account.

System_CAPS_pubmethod DeleteAccount(String)

Synchronous call to delete the email account bound to the specified user.

System_CAPS_pubmethod DisableAccount(String)

Synchronous call to disable the email account bound to the specified user.

System_CAPS_pubmethod Disconnect()

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubmethod Dispose()

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod Dispose(Boolean)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubmethod EnableAccount(String)

Synchronous call to enable the email account bound to the specified user.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod ExecuteOperationAsync<T>(String, TimeSpan, Action<String>)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetAccount(String)

Synchronous call to retrieve a new email account and to bind the new account to a Windows Server 2012 Essentials user.

System_CAPS_pubmethod GetAllAccounts()

Synchronous call to retrieve all email accounts.

System_CAPS_pubmethod GetAllAssignedAccounts()

Synchronous call to get all email accounts assigned to Windows Server 2012 Essentials users.

System_CAPS_pubmethod GetAllUnassignedAccounts()

Synchronous call to get all email accounts that not assigned to any Windows Server 2012 Essentials user.

System_CAPS_pubmethod GetDomains()

Synchronous call to get the domains associated with the hosted email server.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod Invoke(Action)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod Invoke<TResult>(Func<TResult>)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod InvokeAsync(Action, EventHandler<OperationInvokeEventArgs<Object>>)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod InvokeAsync<TResult>(Func<TResult>, EventHandler<OperationInvokeEventArgs<TResult>>)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod IsKnownException(Exception)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod OnConnectionClosed()

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubmethod OnConnectionFailed()

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubmethod OnConnectionOpened()

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod OnOperationComplete<TResult>(OperationInvokeEventArgs<TResult>)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubmethod OnOperationInvokeCompleted<TResult>(OperationInvokeEventArgs<TResult>)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod OnOperationStart(String, TimeSpan)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_protmethod RaisePropertyChanged(String)

Raises the property changed event with the specified property name.(Inherited from ObjectModelBase.)

System_CAPS_pubmethod ResetPassword(String, String)

Synchronous call to reset the password of the email account bound to a Windows Server 2012 Essentials user.

System_CAPS_protmethod StartOperation<T>(String, TimeSpan, EventHandler<OperationInvokeEventArgs<T>>, Action<String>)

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod UnassignAccount(String)

Synchronous call to unbind a Windows Server 2012 Essentials user with a bound email account.

System_CAPS_pubmethod UpdateAccount(String, EmailAccountInfo)

Synchronous call to update an email account.

Events

Name Description
System_CAPS_pubevent ConnectCompleted

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubevent ConnectFailed

(Inherited from ObjectModelBaseExtended<TBackEnd>.)

System_CAPS_pubevent HostedEmailAccountUpdated

Occurs when any hosted email account is updated.

System_CAPS_pubevent PropertyChanged

Represents an INotifyPropertyChanged event that informs consumers of a provider when a property value is changed.(Inherited from ObjectModelBase.)

Remarks

This object represents the primary object a 3rd party developer will use to interact with a hosted email service. Most of the calls are passed to the IHostedEmailAdaptor, which is implemented by the provider.

For more information about making calls into a hosted email adapter, see How to: Manage the Hosted Email Service.

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.

See Also

Microsoft.WindowsServerSolutions.HostedEmail Namespace

Return to top