The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
.NET Framework (current version)
Specifies the permission level for images.
WindowsBase (in WindowsBase.dll)
public enum MediaPermissionImage
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)]
Return to top
Available since 3.0