MediaPermissionImage MediaPermissionImage MediaPermissionImage MediaPermissionImage Enum

Definition

Specifies the permission level for images.

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

Fields

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.

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