Redigera

Dela via


HostSecurityManager.ProvideAppDomainEvidence(Evidence) Method

Definition

Provides the application domain evidence for an assembly being loaded.

public:
 virtual System::Security::Policy::Evidence ^ ProvideAppDomainEvidence(System::Security::Policy::Evidence ^ inputEvidence);
public virtual System.Security.Policy.Evidence ProvideAppDomainEvidence (System.Security.Policy.Evidence inputEvidence);
abstract member ProvideAppDomainEvidence : System.Security.Policy.Evidence -> System.Security.Policy.Evidence
override this.ProvideAppDomainEvidence : System.Security.Policy.Evidence -> System.Security.Policy.Evidence
Public Overridable Function ProvideAppDomainEvidence (inputEvidence As Evidence) As Evidence

Parameters

inputEvidence
Evidence

Additional evidence to add to the AppDomain evidence.

Returns

The evidence to be used for the AppDomain.

Remarks

This method can be overridden in a derived class.

This method is called whenever an AppDomain object is created. The inputEvidence parameter is the computed evidence from the common language runtime. The host implementation can choose to extend or reduce the evidence. The return value is the evidence to be used for the application domain. The base implementation always returns the evidence object passed in as the inputEvidence parameter.

Important

See the Notes to Inheritors for the HostSecurityManager class for critical implementation information.

Applies to