Upraviť

Zdieľať cez


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
public ref class ApplicationTrust sealed : System::Security::ISecurityEncodable
public sealed class ApplicationTrust : System.Security.Policy.EvidenceBase, System.Security.ISecurityEncodable
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class ApplicationTrust : 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
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type ApplicationTrust = class
    interface ISecurityEncodable
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type ApplicationTrust = class
    inherit EvidenceBase
    interface ISecurityEncodable
Public NotInheritable Class ApplicationTrust
Inherits EvidenceBase
Implements ISecurityEncodable
Public NotInheritable Class ApplicationTrust
Implements 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