This documentation is archived and is not being maintained.

CustomPeerResolverService.Refresh Method

Refreshes the expiry of an entry in the peer resolver service's registration lookup table.

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

public virtual RefreshResponseInfo Refresh(
	RefreshInfo refreshInfo
)

Parameters

refreshInfo
Type: System.ServiceModel.PeerResolvers.RefreshInfo

RefreshInfo object that contains the mesh ID and the registration ID of the entry to refresh in the peer resolver service's registration lookup table.

Return Value

Type: System.ServiceModel.PeerResolvers.RefreshResponseInfo
RefreshResponseInfo that contains the newly refreshed registration entry.

Implements

IPeerResolverContract.Refresh(RefreshInfo)

ExceptionCondition
ArgumentException

refreshInfo is set to null.

InvalidOperationException

The custom peer resolver service has not been started with a previous call to Open.

A refresh of an entry extends the length of time for which it remains valid. All information used to uniquely identify the entry must be supplied in the RefreshInfo object supplied to this method.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: