| Visual Basic (Declaration) | |
|---|---|
Public Sub Refresh() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MailboxCollection instance.Refresh() | |
| C# | |
|---|---|
public void Refresh() | |
| Managed Extensions for C++ | |
|---|---|
public: void Refresh(); | |
| C++/CLI | |
|---|---|
public: void Refresh(); | |
| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.ProtocolException | Bad IMAP protocol response received from server. |
| System.Net.Sockets.SocketException | The requested address is not valid in its context. |
The MailboxCollection.Refresh method refreshes the list of mailboxes represented by this collection. This could be either the list of top-level mailboxes or a set of child mailboxes.
If the contents of the MailboxCollection are modified by using the methods of the MailboxCollection the collection will be automatically refreshed. MailboxCollection.Refresh would typically only be used to refresh the collection if two users are using the same mail account simultaneously.
Target Platforms: Microsoft .NET Framework 2.0