MediaPermissionVideo Enumeration
TOC
Collapse the table of content
Expand the table of content

MediaPermissionVideo Enumeration

 

Specifies the permission level for video.

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

public enum MediaPermissionVideo

Member nameDescription
AllVideo

Permission that allows unrestricted video playback.

NoVideo

Permission that denies all video playback.

SafeVideo

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

SiteOfOriginVideo

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
Show:
© 2016 Microsoft