PermissionRequestEvidence 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.
注意
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.
定义表示权限请求的证据。 此类不能被继承。
public ref class PermissionRequestEvidence sealed : System::Security::Policy::EvidenceBase
public ref class PermissionRequestEvidence sealed
[System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[System.Serializable]
public sealed class PermissionRequestEvidence
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class PermissionRequestEvidence
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Obsolete("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[<System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
inherit EvidenceBase
[<System.Serializable>]
type PermissionRequestEvidence = class
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PermissionRequestEvidence = class
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Obsolete("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
inherit EvidenceBase
type PermissionRequestEvidence = class
inherit EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Inherits EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
- 继承
- 继承
-
PermissionRequestEvidence
- 属性
注意
代码访问安全性 (CAS) 已在所有版本的 .NET Framework 和 .NET 中弃用。 如果使用与 CAS 相关的 API,最新版本的 .NET 不会遵循 CAS 注释,并会生成错误。 开发人员应寻求用于完成安全任务的替代方法。
权限请求包括代码运行所需的最低权限、授予但不需要的代码可以使用的权限,以及代码明确要求不授予的权限。
Permission |
已过时.
已过时.
用代码程序集的权限请求初始化 PermissionRequestEvidence 类的新实例。 |
Denied |
已过时.
已过时.
获取代码明确请求不要授予的权限。 |
Optional |
已过时.
已过时.
获取(如果授予)代码可以使用的(但不是必需的)权限。 |
Requested |
已过时.
已过时.
获取代码运行所需的最小权限。 |
Clone() |
已过时.
已过时.
创建作为当前实例副本的新对象。 |
Clone() |
已过时.
已过时.
创建作为当前实例的完整副本的新对象。 (继承自 EvidenceBase) |
Copy() |
已过时.
已过时.
创建当前 PermissionRequestEvidence 的等效副本。 |
Equals(Object) |
已过时.
已过时.
确定指定对象是否等于当前对象。 (继承自 Object) |
Get |
已过时.
已过时.
作为默认哈希函数。 (继承自 Object) |
Get |
已过时.
已过时.
获取当前实例的 Type。 (继承自 Object) |
Memberwise |
已过时.
已过时.
创建当前 Object 的浅表副本。 (继承自 Object) |
To |
已过时.
已过时.
获取 PermissionRequestEvidence 状态的字符串表示形式。 |
产品 | 版本 (已过时) |
---|---|
.NET | (8 (package-provided), 9 (package-provided)) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | (3.0, 3.1, 5, 6, 7, 8, 9) |