MediaPermissionVideo Enum

Definition

Caution

Code Access Security is not supported or honored by the runtime.

Specifies the permission level for video.

public enum class MediaPermissionVideo
public enum MediaPermissionVideo
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public enum MediaPermissionVideo
type MediaPermissionVideo = 
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type MediaPermissionVideo = 
Public Enum MediaPermissionVideo
Inheritance
MediaPermissionVideo
Attributes

Fields

AllVideo 3

Permission that allows unrestricted video playback.

NoVideo 0

Permission that denies all video playback.

SafeVideo 2

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

SiteOfOriginVideo 1

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

Examples

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

[MediaPermissionAttribute(SecurityAction.Demand, Video = MediaPermissionVideo.NoVideo)]
<MediaPermissionAttribute(SecurityAction.Demand, Video:=MediaPermissionVideo.NoVideo)>
Public Sub Method10()
End Sub

Remarks

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

Applies to