Bagikan melalui


MediaPermissionAttribute.Image Properti

Definisi

Mendapatkan atau mengatur tingkat izin gambar untuk 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

Nilai Properti

MediaPermissionImageStatus .

Contoh

Contoh kode berikut menunjukkan penggunaan Image properti .

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

Keterangan

Default adalah SafeImage.

Berlaku untuk