ActiveUp.Net.Mail.Mailbox.Rename C# (CSharp) 메소드

Rename() 공개 메소드

Renames the mailbox.
public Rename ( string newMailboxName ) : string
newMailboxName string The new name of the mailbox.
리턴 string
		public string Rename(string newMailboxName)
		{
			try
			{
				string response = this.SourceClient.RenameMailbox(this.Name,newMailboxName);
				this.Name = newMailboxName;
				return response;
			}
			catch(System.Net.Sockets.SocketException)
			{
				throw new Imap4Exception("Rename failed.\nThe mailbox' source client wasn't connected anymore.");
			}
		}