Evidence.Locked Property


Gets or sets a value indicating whether the evidence is locked.

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

public bool Locked { get; set; }

Property Value

Type: System.Boolean

true if the evidence is locked; otherwise, false. The default is false.

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

Console.WriteLine("\nThe default value for the Locked property = " + myEvidence.Locked.ToString());


for the ability to set this property. Associated enumeration: SecurityPermissionFlag.ControlEvidence

.NET Framework
Available since 1.1
Return to top