This documentation is archived and is not being maintained.

MediaPermissionImage Enumeration

Specifies the permission level for images.

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

public enum MediaPermissionImage
public enum MediaPermissionImage
public enum MediaPermissionImage
<object property="EnumerationValue" .../>

 Member nameDescription
AllImagePermission that allows unrestricted image display. 
NoImagePermission that denies all images to be displayed. 
SafeImagePermission that allows safe, limited image display, which includes denying stream access to the image file. 
SiteOfOriginImagePermission 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)]

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0