Share via


LocalClientSecuritySettings.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

示例

此示例演示如何对从服务接收的消息启用重播检测。

// Enable replay detection.
settings.DetectReplays = true;
' Enable replay detection.
settings.DetectReplays = True

适用于