MailBindingBase.AcceptExistingMessages Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets a value that indicates whether the channel will accept and process all existing messages.

Namespace:  Microsoft.ServiceModel.Channels.Mail
Assembly:  Microsoft.ServiceModel.Channels.Mail (in Microsoft.ServiceModel.Channels.Mail.dll)

Syntax

'Declaration
Public Property AcceptExistingMessages As Boolean
    Get
    Set
'Usage
Dim instance As MailBindingBase
Dim value As Boolean

value = instance.AcceptExistingMessages

instance.AcceptExistingMessages = value
public bool AcceptExistingMessages { get; set; }
public:
property bool AcceptExistingMessages {
    bool get ();
    void set (bool value);
}
member AcceptExistingMessages : bool with get, set

Property Value

Type: System.Boolean
true if the channel will accept and process all existing messages; otherwise, false. The default is true.

Remarks

When the AcceptExistingMessages property is set to true, even messages that were sent before the channel was opened will be accepted and processed. When the property is set to false, the channel accepts only new messages and deletes all existing messages from the in-memory cache.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5

See Also

Reference

MailBindingBase Class

MailBindingBase Members

Microsoft.ServiceModel.Channels.Mail Namespace