MediaPermissionImage Enum

Definition

Specifies the permission level for images.

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

Fields

AllImage 3

Permission that allows unrestricted image display.

NoImage 0

Permission that denies all images to be displayed.

SafeImage 2

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

SiteOfOriginImage 1

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

Examples

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

Remarks

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

Applies to