MediaPermissionImage 枚举

定义

指定图像的权限级别。Specifies the permission level for images.

public enum class MediaPermissionImage
public enum MediaPermissionImage
type MediaPermissionImage = 
Public Enum MediaPermissionImage
继承
MediaPermissionImage

字段

AllImage 3

允许显示不受限制图像的权限。Permission that allows unrestricted image display.

NoImage 0

拒绝显示所有图像的权限。Permission that denies all images to be displayed.

SafeImage 2

允许显示安全、有限制图像的权限,该权限包括拒绝对图像文件的流访问。Permission that allows safe, limited image display, which includes denying stream access to the image file.

SiteOfOriginImage 1

只允许显示位于应用程序源站点的图像的权限。Permission that only allows display of images that are located at the application's site of origin.

示例

下面的代码示例演示Image属性的用法。The following code example shows the use of the Image property.

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

注解

使用此枚举设置Image MediaPermission类的属性。Use this enumeration to set the Image property of the MediaPermission class. 默认值为 SafeImage。The default is SafeImage.

适用于