MediaPermissionVideo Enumeration


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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