MediaPermissionAttribute.Image 属性

定义

获取或设置 MediaPermissionAttribute 的图像权限级别。

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

属性值

MediaPermissionImage 的状态。

示例

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

[MediaPermissionAttribute(SecurityAction.Demand, Image = MediaPermissionImage.AllImage)]
<MediaPermissionAttribute(SecurityAction.Demand, Image:=MediaPermissionImage.AllImage)>
Public Sub Method05()
End Sub

注解

默认为 SafeImage

适用于