UnsubscribeMailbox Method  
 

Unsubscribes the user from the specified mailbox.

Syntax

object.UnsubscribeMailbox( MailboxName )

Parameters

MailboxName
A string which specifies the name of the mailbox to unsubscribe from.

Return Value

A value of zero is returned if the method succeeds. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The UnsubscribeMailbox method removes the specified mailbox from the current user's list of active or subscribed mailboxes. To determine if the current mailbox is in the user's subscription list, check the Subscribed property.

See Also

MailboxName Property, Subscribed Property, SubscribeMailbox Method