Attachment.BlockLevel (Outlook)

Returns an OlAttachmentBlockLevel constant that specifies if there is any restriction on the attachment based on its file extension. Possible return values are olAttachmentBlockLevelNone - There is no restriction on the type of the attachment based on its file extension, olAttachmentBlockLevelOpen - There is a restriction on the type of the attachment based on its file extension such that users must first save the attachment to disk before opening it.

This value of this property reflects whether an attachment is blocked based on its file extension and how attachment security has been set up on the client computer. For more information on attachment security in Outlook, see the Office Resource Kit Web site.


Dim oabBlockLevel As OlAttachmentBlockLevel
oabBlockLevel = Session.CreateSharingItem.Move.GetStorage.Attachments(1).BlockLevel