全部显示

MarkForDownload 属性

       

返回或设置项目由远程用户接收时的状态。OlRemoteStatus 常量。该属性为传输能力较小的远程用户提供了较强的邮件灵活性。可读写。

expression.MarkForDownload

expression  必选。该表达式返回“应用于”列表中的一个对象。

示例

以下示例将所有由指定用户发送的电子邮件项目的 MarkForDownload 属性设置为 olMarkedForDownload。这样所有来自该用户的项目将被整个地下载。

Sub RemoteUse(ByVal strSender As String, ByRef objMail As MailItem)
'Marks all items from a certain user to be downloaded

    With objMail
        'If mail is from the sender, mark it for download
        If .SenderName = strSender Then
            .MarkForDownload = olMarkedForDownload
        End If
    End With

End Sub