MailStore Class

An abstract mail store implementation.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public abstract class MailStore : MailService, 
	IMailStore, IMailService, IDisposable, IAsyncDisposable
Inheritance
Object    MailService    MailStore
Derived
Implements
IMailService, IMailStore, IAsyncDisposable, IDisposable

Remarks

An abstract mail store implementation.

Constructors

MailStore Initializes a new instance of the MailStore class.

Properties

AuthenticationMechanisms Gets the authentication mechanisms supported by the mail server.
(Inherited from MailService)
CheckCertificateRevocation Get or set whether connecting via SSL/TLS should check certificate revocation.
(Inherited from MailService)
ClientCertificates Get or set the client SSL certificates.
(Inherited from MailService)
Inbox Get the Inbox folder.
IsAuthenticated Get whether or not the client is currently authenticated with the mail server.
(Inherited from MailService)
IsConnected Gets whether or not the client is currently connected to an mail server.
(Inherited from MailService)
IsEncrypted Get whether or not the connection is encrypted (typically via SSL or TLS).
(Inherited from MailService)
IsSecure Get whether or not the connection is secure (typically via SSL or TLS).
(Inherited from MailService)
IsSigned Get whether or not the connection is signed (typically via SSL or TLS).
(Inherited from MailService)
LocalEndPoint Get or set the local IP end point to use when connecting to the remote host.
(Inherited from MailService)
OtherNamespaces Gets the other namespaces.
PersonalNamespaces Gets the personal namespaces.
Protocol Get the protocol supported by the message service.
(Inherited from MailService)
ProtocolLogger Get the protocol logger.
(Inherited from MailService)
ProxyClient Get or set the proxy client to use when connecting to a remote host.
(Inherited from MailService)
ServerCertificateValidationCallback Get or set a callback function to validate the server certificate.
(Inherited from MailService)
SharedNamespaces Gets the shared namespaces.
SslCipherSuite Get the negotiated SSL or TLS cipher suite.
(Inherited from MailService)
SslCipherSuitesPolicy Get or set the cipher suites allowed to be used when negotiating an SSL or TLS connection.
(Inherited from MailService)
SslProtocol Get the negotiated SSL or TLS protocol version.
(Inherited from MailService)
SslProtocols Get or set the set of enabled SSL and/or TLS protocol versions that the client is allowed to use.
(Inherited from MailService)
SupportsQuotas Get whether or not the mail store supports quotas.
SyncRoot Get an object that can be used to synchronize access to the service.
(Inherited from MailService)
ThreadingAlgorithms Get the threading algorithms supported by the mail store.
Timeout Gets or sets the timeout for network streaming operations, in milliseconds.
(Inherited from MailService)

Methods

Authenticate(ICredentials, CancellationToken) Authenticate using the supplied credentials.
(Inherited from MailService)
Authenticate(SaslMechanism, CancellationToken) Authenticate using the specified SASL mechanism.
(Inherited from MailService)
Authenticate(Encoding, ICredentials, CancellationToken) Authenticate using the supplied credentials.
(Inherited from MailService)
Authenticate(String, String, CancellationToken) Authenticate using the specified user name and password.
(Inherited from MailService)
Authenticate(Encoding, String, String, CancellationToken) Authenticate using the specified user name and password.
(Inherited from MailService)
AuthenticateAsync(ICredentials, CancellationToken) Asynchronously authenticate using the supplied credentials.
(Inherited from MailService)
AuthenticateAsync(SaslMechanism, CancellationToken) Asynchronously authenticate using the specified SASL mechanism.
(Inherited from MailService)
AuthenticateAsync(Encoding, ICredentials, CancellationToken) Asynchronously authenticate using the supplied credentials.
(Inherited from MailService)
AuthenticateAsync(String, String, CancellationToken) Asynchronously authenticate using the specified user name and password.
(Inherited from MailService)
AuthenticateAsync(Encoding, String, String, CancellationToken) Asynchronously authenticate using the specified user name and password.
(Inherited from MailService)
Connect(Uri, CancellationToken) Establish a connection to the specified mail server.
(Inherited from MailService)
Connect(String, Int32, SecureSocketOptions, CancellationToken) Establish a connection to the specified mail server.
(Inherited from MailService)
Connect(String, Int32, Boolean, CancellationToken) Establish a connection to the specified mail server.
(Inherited from MailService)
Connect(Socket, String, Int32, SecureSocketOptions, CancellationToken) Establish a connection to the specified mail server using the provided socket.
(Inherited from MailService)
Connect(Stream, String, Int32, SecureSocketOptions, CancellationToken) Establish a connection to the specified mail server using the provided stream.
(Inherited from MailService)
ConnectAsync(Uri, CancellationToken) Asynchronously establish a connection to the specified mail server.
(Inherited from MailService)
ConnectAsync(String, Int32, SecureSocketOptions, CancellationToken) Asynchronously establish a connection to the specified mail server.
(Inherited from MailService)
ConnectAsync(String, Int32, Boolean, CancellationToken) Asynchronously establish a connection to the specified mail server.
(Inherited from MailService)
ConnectAsync(Socket, String, Int32, SecureSocketOptions, CancellationToken) Asynchronously establish a connection to the specified mail server using the provided socket.
(Inherited from MailService)
ConnectAsync(Stream, String, Int32, SecureSocketOptions, CancellationToken) Asynchronously establish a connection to the specified mail server using the provided stream.
(Inherited from MailService)
Disconnect Disconnect the service.
(Inherited from MailService)
DisconnectAsync Asynchronously disconnect the service.
(Inherited from MailService)
Dispose Releases all resource used by the MailService object.
(Inherited from MailService)
Dispose(Boolean) Releases the unmanaged resources used by the MailService and optionally releases the managed resources.
(Inherited from MailService)
DisposeAsync Asynchronously releases all resources used by the MailService object.
(Inherited from MailService)
DisposeAsyncCore Asynchronously releases the managed resources used by the MailService.
(Inherited from MailService)
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Releases unmanaged resources and performs other cleanup operations before the MailService is reclaimed by garbage collection.
(Inherited from MailService)
GetFolder(FolderNamespace) Get the folder for the specified namespace.
GetFolder(SpecialFolder) Get the specified special folder.
GetFolder(String, CancellationToken) Get the folder for the specified path.
GetFolderAsync Asynchronously get the folder for the specified path.
GetFolders(FolderNamespace, Boolean, CancellationToken) Get all of the folders within the specified namespace.
GetFolders(FolderNamespace, StatusItems, Boolean, CancellationToken) Get all of the folders within the specified namespace.
GetFoldersAsync(FolderNamespace, Boolean, CancellationToken) Asynchronously get all of the folders within the specified namespace.
GetFoldersAsync(FolderNamespace, StatusItems, Boolean, CancellationToken) Asynchronously get all of the folders within the specified namespace.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetMetadata(IEnumerableMetadataTag, CancellationToken) Gets the specified metadata.
GetMetadata(MetadataTag, CancellationToken) Gets the specified metadata.
GetMetadata(MetadataOptions, IEnumerableMetadataTag, CancellationToken) Gets the specified metadata.
GetMetadataAsync(IEnumerableMetadataTag, CancellationToken) Asynchronously gets the specified metadata.
GetMetadataAsync(MetadataTag, CancellationToken) Asynchronously gets the specified metadata.
GetMetadataAsync(MetadataOptions, IEnumerableMetadataTag, CancellationToken) Asynchronously gets the specified metadata.
GetSslClientAuthenticationOptions Gets the SSL/TLS client authentication options for use with .NET5's SslStream.AuthenticateAsClient() API.
(Inherited from MailService)
GetType Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
NoOp Ping the mail server to keep the connection alive.
(Inherited from MailService)
NoOpAsync Asynchronously ping the mail server to keep the connection alive.
(Inherited from MailService)
OnAlert Raise the alert event.
OnAuthenticated Raise the authenticated event.
(Inherited from MailService)
OnConnected Raise the connected event.
(Inherited from MailService)
OnDisconnected Raise the disconnected event.
(Inherited from MailService)
OnFolderCreated Raise the folder created event.
OnMetadataChanged Raise the metadata changed event.
SetMetadata Sets the specified metadata.
SetMetadataAsync Asynchronously sets the specified metadata.
ToString Returns a string that represents the current object.
(Inherited from Object)

Events

Alert Occurs when a remote message store receives an alert message from the server.
Authenticated Occurs when the client has been successfully authenticated.
(Inherited from MailService)
Connected Occurs when the client has been successfully connected.
(Inherited from MailService)
Disconnected Occurs when the client gets disconnected.
(Inherited from MailService)
FolderCreated Occurs when a folder is created.
MetadataChanged Occurs when metadata changes.

See Also

Reference