PermissionRequestEvidence 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.
注意
This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.
注意
Code Access Security is not supported or honored by the runtime.
注意
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 http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
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.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[System.Obsolete("Code Access Security is not supported or honored by the runtime.")]
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
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[<System.Obsolete("This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
inherit EvidenceBase
[<System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
inherit EvidenceBase
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.")>]
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
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PermissionRequestEvidence = class
inherit EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Inherits EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
- 继承
- 继承
-
PermissionRequestEvidence
- 属性
注解
注意
代码访问安全性 (CAS) 已在所有版本的 .NET Framework 和 .NET 中弃用。 如果使用与 CAS 相关的 API,最新版本的 .NET 不会遵循 CAS 注释,并会生成错误。 开发人员应寻求使用替代方法来完成安全任务。
权限请求包括代码运行所需的最低权限、授予但不需要的代码可以使用的权限,以及代码明确要求不授予的权限。
构造函数
PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet) |
已过时.
已过时.
已过时.
已过时.
用代码程序集的权限请求初始化 PermissionRequestEvidence 类的新实例。 |
属性
DeniedPermissions |
已过时.
已过时.
已过时.
已过时.
获取代码明确请求不要授予的权限。 |
OptionalPermissions |
已过时.
已过时.
已过时.
已过时.
获取(如果授予)代码可以使用的(但不是必需的)权限。 |
RequestedPermissions |
已过时.
已过时.
已过时.
已过时.
获取代码运行所需的最小权限。 |
方法
Clone() |
已过时.
已过时.
已过时.
已过时.
创建作为当前实例副本的新对象。 |
Clone() |
已过时.
已过时.
已过时.
已过时.
创建作为当前实例的完整副本的新对象。 (继承自 EvidenceBase) |
Copy() |
已过时.
已过时.
已过时.
已过时.
创建当前 PermissionRequestEvidence 的等效副本。 |
Equals(Object) |
已过时.
已过时.
已过时.
已过时.
确定指定对象是否等于当前对象。 (继承自 Object) |
GetHashCode() |
已过时.
已过时.
已过时.
已过时.
作为默认哈希函数。 (继承自 Object) |
GetType() |
已过时.
已过时.
已过时.
已过时.
获取当前实例的 Type。 (继承自 Object) |
MemberwiseClone() |
已过时.
已过时.
已过时.
已过时.
创建当前 Object 的浅表副本。 (继承自 Object) |
ToString() |
已过时.
已过时.
已过时.
已过时.
获取 PermissionRequestEvidence 状态的字符串表示形式。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈