Evidence.Locked 属性

定义

获取或设置一个值,该值指示证据是否是锁定的。Gets or sets a value indicating whether the evidence is locked.

public:
 property bool Locked { bool get(); void set(bool value); };
public bool Locked { get; set; }
member this.Locked : bool with get, set
Public Property Locked As Boolean

属性值

如果证据是锁定的,则为 true;否则为 falsetrue if the evidence is locked; otherwise, false. 默认值为 falseThe default is false.

示例

下面的代码示例演示如何使用 Locked 属性。The following code example shows the use of the Locked property. 此示例是为 Evidence 类提供的更大示例的一部分。This example is part of a larger example provided for the Evidence class.

Console::WriteLine( "\nThe default value for the Locked property = {0}", myEvidence->Locked );
Console.WriteLine("\nThe default value for the Locked property = " + myEvidence.Locked.ToString());
Console.WriteLine((ControlChars.Lf & "The default value for the Locked property = " & myEvidence.Locked.ToString()))

安全性

SecurityPermission
用于设置此属性的功能。for the ability to set this property. 关联的枚举: ControlEvidenceAssociated enumeration: ControlEvidence

适用于