LocalServiceSecuritySettings.DetectReplays 属性

定义

获取或设置一个值,该值指示是否在服务上启用重播检测。

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

属性值

如果对服务启用重放检测,则为 true;否则为 false。 默认值为 true

示例

此示例演示如何获取此属性的值。

LocalServiceSecuritySettings settings =
    new LocalServiceSecuritySettings();

bool detectReplays = settings.DetectReplays;
Dim settings As New LocalServiceSecuritySettings()

Dim detectReplays = settings.DetectReplays

适用于