Evidence.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;否则为 false。 默认值为 false

示例

下面的代码示例演示如何使用 Locked 属性。 此示例是为 类提供的更大示例的 Evidence 一部分。

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()))

适用于