CompilerResults::Evidence Property

 
Note: This API is now obsolete.

Indicates the evidence object that represents the security policy permissions of the compiled assembly.

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

public:
[ObsoleteAttribute("CAS policy is obsolete and will be removed in a future release of the .NET Framework. Please see http://go2.microsoft.com/fwlink/?LinkId=131738 for more information.")]
property Evidence^ Evidence {
	[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")]
	Evidence^ get();
	[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")]
	[SecurityPermissionAttribute(SecurityAction::Demand, ControlEvidence = true)]
	void set(Evidence^ value);
}

Property Value

Type: System.Security.Policy::Evidence^

An Evidence object that represents the security policy permissions of the compiled assembly.

SecurityAction::LinkDemand

for full trust for the immediate caller. This class cannot be used by partially trusted code.

System.Security.Permissions::SecurityPermission

for the ability to control evidence. Permission value: SecurityPermissionFlag::ControlEvidence Security action: Demand

.NET Framework
Available since 1.1
Return to top
Show: