ApplicationTrust ApplicationTrust ApplicationTrust ApplicationTrust Class

定义

封装关于应用程序的安全决策。Encapsulates security decisions about an application. 此类不能被继承。This class cannot be inherited.

public ref class ApplicationTrust sealed : System::Security::Policy::EvidenceBase, System::Security::ISecurityEncodable
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class ApplicationTrust : System.Security.Policy.EvidenceBase, System.Security.ISecurityEncodable
type ApplicationTrust = class
    inherit EvidenceBase
    interface ISecurityEncodable
Public NotInheritable Class ApplicationTrust
Inherits EvidenceBase
Implements ISecurityEncodable
继承
ApplicationTrustApplicationTrustApplicationTrustApplicationTrust
属性
实现

注解

信任管理器的DetermineApplicationTrust方法返回对象。ApplicationTrustAn ApplicationTrust object is returned by a trust manager's DetermineApplicationTrust method.

构造函数

ApplicationTrust() ApplicationTrust() ApplicationTrust() ApplicationTrust()

初始化 ApplicationTrust 类的新实例。Initializes a new instance of the ApplicationTrust class.

ApplicationTrust(ApplicationIdentity) ApplicationTrust(ApplicationIdentity) ApplicationTrust(ApplicationIdentity) ApplicationTrust(ApplicationIdentity)

使用 ApplicationTrust 初始化 ApplicationIdentity 类的新实例。Initializes a new instance of the ApplicationTrust class with an ApplicationIdentity.

ApplicationTrust(PermissionSet, IEnumerable<StrongName>) ApplicationTrust(PermissionSet, IEnumerable<StrongName>) ApplicationTrust(PermissionSet, IEnumerable<StrongName>) ApplicationTrust(PermissionSet, IEnumerable<StrongName>)

使用提供的授予集和完全信任程序集的集合,初始化 ApplicationTrust 类的新实例。Initializes a new instance of the ApplicationTrust class using the provided grant set and collection of full-trust assemblies.

属性

ApplicationIdentity ApplicationIdentity ApplicationIdentity ApplicationIdentity

获取或设置应用程序信任对象的应用程序标识。Gets or sets the application identity for the application trust object.

DefaultGrantSet DefaultGrantSet DefaultGrantSet DefaultGrantSet

获取或设置定义默认授予集的策略声明。Gets or sets the policy statement defining the default grant set.

ExtraInfo ExtraInfo ExtraInfo ExtraInfo

获取或设置有关应用程序的额外安全信息。Gets or sets extra security information about the application.

FullTrustAssemblies FullTrustAssemblies FullTrustAssemblies FullTrustAssemblies

获取此应用程序信任的完全信任程序集的列表。Gets the list of full-trust assemblies for this application trust.

IsApplicationTrustedToRun IsApplicationTrustedToRun IsApplicationTrustedToRun IsApplicationTrustedToRun

获取或设置一个值,该值指示应用程序是否具有所需的权限授予并且受信任可运行。Gets or sets a value indicating whether the application has the required permission grants and is trusted to run.

Persist Persist Persist Persist

获取或设置一个值,该值指示是否保留应用程序信任信息。Gets or sets a value indicating whether application trust information is persisted.

方法

Clone() Clone() Clone() Clone()

创建作为当前实例的完整副本的新对象。Creates a new object that is a complete copy of the current instance.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromXml(SecurityElement) FromXml(SecurityElement) FromXml(SecurityElement) FromXml(SecurityElement)

从 XML 编码重新构造具有给定状态的 ApplicationTrust 对象。Reconstructs an ApplicationTrust object with a given state from an XML encoding.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
ToXml() ToXml() ToXml() ToXml()

创建 ApplicationTrust 对象及其当前状态的 XML 编码。Creates an XML encoding of the ApplicationTrust object and its current state.

适用于