Evidence.Clear Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the host and assembly evidence from the evidence set.

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

[<ComVisibleAttribute(false)>]
member Clear : unit -> unit

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.

No code example is currently available or this language may not be supported.

SecurityPermission

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

.NET Framework
Available since 2.0
Return to top
Show: