Прочетете на английски Редактиране

Споделяне чрез


ApplicationTrust Class

Definition

Encapsulates security decisions about an application. This class cannot be inherited.

C#
public sealed class ApplicationTrust : System.Security.Policy.EvidenceBase, System.Security.ISecurityEncodable
C#
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class ApplicationTrust : System.Security.ISecurityEncodable
C#
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class ApplicationTrust : System.Security.Policy.EvidenceBase, System.Security.ISecurityEncodable
Inheritance
ApplicationTrust
Inheritance
ApplicationTrust
Attributes
Implements

Remarks

An ApplicationTrust object is returned by a trust manager's DetermineApplicationTrust method.

Constructors

ApplicationTrust()

Initializes a new instance of the ApplicationTrust class.

ApplicationTrust(ApplicationIdentity)

Initializes a new instance of the ApplicationTrust class with an ApplicationIdentity.

ApplicationTrust(PermissionSet, IEnumerable<StrongName>)
Obsolete.

Initializes a new instance of the ApplicationTrust class using the provided grant set and collection of full-trust assemblies.

Properties

ApplicationIdentity

Gets or sets the application identity for the application trust object.

DefaultGrantSet

Gets or sets the policy statement defining the default grant set.

ExtraInfo

Gets or sets extra security information about the application.

FullTrustAssemblies
Obsolete.

Gets the list of full-trust assemblies for this application trust.

IsApplicationTrustedToRun

Gets or sets a value indicating whether the application has the required permission grants and is trusted to run.

Persist

Gets or sets a value indicating whether application trust information is persisted.

Methods

Clone()

Creates a new object that is a complete copy of the current instance.

Clone()

Creates a new object that is a complete copy of the current instance.

(Inherited from EvidenceBase)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromXml(SecurityElement)

Reconstructs an ApplicationTrust object with a given state from an XML encoding.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
ToXml()

Creates an XML encoding of the ApplicationTrust object and its current state.

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 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, 10