| Visual Basic (Declaration) | |
|---|---|
Public Property FullName As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Mailbox Dim value As String instance.FullName = value value = instance.FullName | |
| C# | |
|---|---|
public string FullName {get; set;} | |
| Managed Extensions for C++ | |
|---|---|
public: __property string* get_FullName(); public: __property void set_FullName( string* value ); | |
Property Value
A string representing the full path name of the mailbox.The Mailbox.FullName property gets or sets the full path name of this mailbox. For example, with a mailbox named:
"inbox\archives\user"
the Mailbox name-related properties would be as follows:
| Property | Value |
|---|---|
| Mailbox.Name | "user" |
| Mailbox.FullName | "inbox\archives\user" |
When setting the Mailbox.Fullname property, a RENAME command is sent to the server. If you are renaming a Mailbox within the same mailbox use the Mailbox.Name property instead. For example, if you wanted to rename
"company/users/bob"
to
"company/users/bobjohnson"
you could simply set Mailbox.Name to "bobjohnson". However, if you wanted to rename
"company/users/bob"
to
"archive/bobbackup"
you could not do this by setting Mailbox.Name. You would have to set Mailbox.FullName to "archive/bobbackup".
The equivalent asynchronous method for renaming a mailbox is
Imap.BeginInvoke("RENAME oldname newname, null);
"&" is represented when sent as "&-". Anything between an "&" and a "–" is converted to Unicode.
Target Platforms: Microsoft .NET Framework 2.0
Copy Code