Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ReplayWindow Property

LocalClientSecuritySettings.ReplayWindow Property

Gets or sets the maximum time that a message nonce is valid.

Namespace:  System.ServiceModel.Channels
Assemblies:   System.ServiceModel.Security (in System.ServiceModel.Security.dll)
  System.ServiceModel (in System.ServiceModel.dll)

public TimeSpan ReplayWindow { get; set; }

Property Value

Type: System.TimeSpan
A TimeSpan that represents the maximum time that a message nonce is valid. The default is five minutes.

ExceptionCondition
ArgumentOutOfRangeException

The property is set to a value less than 0.

A nonce is a "number used once", often a random number used in an authentication protocol to ensure that old communications cannot be used in an attack by using replays.

This example shows how to get this property.

TimeSpan replayWindow = settings.ReplayWindow;

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft