Partager via


MAPIFolder.InAppFolderSyncObject Property

Returns or sets a Boolean (bool in C#) that determines if the specified folder will be synchronized with the e-mail server. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property InAppFolderSyncObject As Boolean
    Get
    Set
'Usage
Dim instance As MAPIFolder
Dim value As Boolean

value = instance.InAppFolderSyncObject

instance.InAppFolderSyncObject = value
[DispIdAttribute()]
bool InAppFolderSyncObject { get; set; }

Property Value

Type: System.Boolean

Remarks

If True, this folder will be synchronized when the "Application Folders" SyncObject is synchronized. If False, the folder will not synchronize.

This is equivalent to selecting the check box for this folder in the Application Folders group on the Send/Receive dialog box.

If this property is set to True, and the "Application Folders" SyncObject does not already exist, a SyncObject will be automatically created. The "Application Folders" SyncObject is the only Send/Receive group that can be programmatically modified.

See Also

Reference

MAPIFolder Interface

MAPIFolder Members

Microsoft.Office.Interop.Outlook Namespace