Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Evidence::Clear Method ()

 

Removes the host and assembly evidence from the evidence set.

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

public:
[ComVisibleAttribute(false)]
void Clear()

Clear removes the evidence in the host and assembly enumerations, setting both to null.

The following code example shows the use of the Clear method. This example is part of a larger example provided for the Evidence class.

Console::WriteLine( "\nClear the current evidence." );
myEvidence->Clear();
Console::WriteLine( "Count is now {0}", myEvidence->Count );

SecurityPermission

for the ability to control evidence. Security action: Demand. Associated enumeration: SecurityPermissionFlag::ControlEvidence

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft