共用方式為


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

適用於