Windows apps
Collapse the table of content
Expand the table of content
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.

MediaPermissionVideo Enumeration


Specifies the permission level for video.

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

public enum MediaPermissionVideo

Member nameDescription

Permission that allows unrestricted video playback.


Permission that denies all video playback.


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


Permission that only allows video playback of files that are located at the application's site of origin.

Use this enumeration to set the Video property of the MediaPermission class. The default is SafeVideo.

The following code example shows the use of the Video property.

[MediaPermissionAttribute(SecurityAction.Demand, Video = MediaPermissionVideo.NoVideo)]

.NET Framework
Available since 3.0
Return to top
© 2017 Microsoft