LocalClientSecuritySettings.DetectReplays Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value that indicates whether replay detection is enabled on messages the client receives from the service.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public bool DetectReplays { get; set; }

Property Value

Type: System.Boolean

true if replay detection is enabled; otherwise, false. The default is true.

This example shows how to enable replay detection on messages received from the service.

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

.NET Framework
Available since 3.0
Return to top