MediaPermissionImage Enumeration


Specifies the permission level for images.

Namespace:   System.Security.Permissions
Assembly:  WindowsBase (in WindowsBase.dll)

public enum MediaPermissionImage

Member nameDescription

Permission that allows unrestricted image display.


Permission that denies all images to be displayed.


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


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

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

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

[MediaPermissionAttribute(SecurityAction.Demand, Image = MediaPermissionImage.AllImage)]

.NET Framework
Available since 3.0
Return to top