MediaPermissionAttribute.Audio 属性

定义

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

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

属性值

MediaPermissionAudio

MediaPermissionAudio 的状态。

示例

下面的代码示例演示了该 Audio 属性的使用。

[MediaPermissionAttribute(SecurityAction.Demand, Audio = MediaPermissionAudio.SiteOfOriginAudio)]
<MediaPermissionAttribute(SecurityAction.Demand, Audio:=MediaPermissionAudio.SiteOfOriginAudio)>
Public Sub Method04()
End Sub

注解

默认值为 SafeAudio

适用于