Evidence.RemoveType Method (Type)


Removes the evidence for a given type from the host and assembly enumerations.

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

public void RemoveType(
	Type t


Type: System.Type

The type of the evidence to be removed.

Exception Condition

t is null.

The results of executing the RemoveType method can be confirmed using the GetAssemblyEnumerator method and the GetHostEnumerator method.

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

Console.WriteLine("\nRemove URL evidence.");
Console.WriteLine("Evidence count is now: " + myEvidence.Count.ToString());

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

.NET Framework
Available since 2.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft