MediaPermissionVideo 枚举

定义

指定视频的权限级别。Specifies the permission level for video.

public enum class MediaPermissionVideo
public enum MediaPermissionVideo
type MediaPermissionVideo = 
Public Enum MediaPermissionVideo
继承
MediaPermissionVideo

字段

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.

示例

下面的代码示例演示Video属性的用法。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

注解

使用此枚举设置Video MediaPermission类的属性。Use this enumeration to set the Video property of the MediaPermission class. 默认值为 SafeVideo。The default is SafeVideo.

适用于