MediaPermissionAttribute.Video 属性

定义

MediaPermissionAttribute 获取或设置视频权限级别。

public:
 property System::Security::Permissions::MediaPermissionVideo Video { System::Security::Permissions::MediaPermissionVideo get(); void set(System::Security::Permissions::MediaPermissionVideo value); };
public System.Security.Permissions.MediaPermissionVideo Video { get; set; }
member this.Video : System.Security.Permissions.MediaPermissionVideo with get, set
Public Property Video As MediaPermissionVideo

属性值

MediaPermissionVideo 的状态。

示例

下面的代码示例演示如何使用 Video 属性。

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

注解

默认为 SafeVideo

适用于