ApplicationTrust ApplicationTrust ApplicationTrust ApplicationTrust Class

Definition

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
Inheritance
ApplicationTrustApplicationTrustApplicationTrustApplicationTrust
Attributes
Implements

Remarks

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

Constructors

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

Initializes a new instance of the ApplicationTrust class.

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>)

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

Properties

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.

Methods

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)

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()

Gets the Type of the current instance.

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

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()

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

Applies to