MediaPermissionImage MediaPermissionImage MediaPermissionImage MediaPermissionImage Enum


Specifies the permission level for images.

public enum class MediaPermissionImage
public enum MediaPermissionImage
type MediaPermissionImage = 
Public Enum MediaPermissionImage


AllImage AllImage AllImage AllImage 3

Permission that allows unrestricted image display.

NoImage NoImage NoImage NoImage 0

Permission that denies all images to be displayed.

SafeImage SafeImage SafeImage SafeImage 2

Permission that allows safe, limited image display, which includes denying stream access to the image file.

SiteOfOriginImage SiteOfOriginImage SiteOfOriginImage SiteOfOriginImage 1

Permission that only allows display of images that are located at the application's site of origin.


The following code example shows the use of the Image property.

[MediaPermissionAttribute(SecurityAction.Demand, Image = MediaPermissionImage.AllImage)]
<MediaPermissionAttribute(SecurityAction.Demand, Image:=MediaPermissionImage.AllImage)>
Public Sub Method05()
End Sub


Use this enumeration to set the Image property of the MediaPermission class. The default is SafeImage.

Applies to