SecurityAttribute.Unrestricted 属性

获取或设置一个值,该值指示是否声明了对受该属性 (Attribute) 保护的资源有完全(无限制的)权限。

**命名空间:**System.Security.Permissions
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Public Property Unrestricted As Boolean
用法
Dim instance As SecurityAttribute
Dim value As Boolean

value = instance.Unrestricted

instance.Unrestricted = value
public bool Unrestricted { get; set; }
public:
property bool Unrestricted {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_Unrestricted ()

/** @property */
public void set_Unrestricted (boolean value)
public function get Unrestricted () : boolean

public function set Unrestricted (value : boolean)

属性值

如果声明了对受保护资源的完全权限,则为 true;否则为 false

备注

所有为声明安全性实现自定义属性 (Attribute) 的类都将继承该属性 (Property)。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

SecurityAttribute 类
SecurityAttribute 成员
System.Security.Permissions 命名空间