MediaPermissionImage Enumeration

 

Specifies the permission level for images.

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

public enum MediaPermissionImage

Member nameDescription
AllImage

Permission that allows unrestricted image display.

NoImage

Permission that denies all images to be displayed.

SafeImage

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

SiteOfOriginImage

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
Show: