Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PeerNameResolver Class

Specifies the values that resolve a PeerName to a PeerNameRecord using the PNRP Namespace Provider API protocol.

System.Object
  System.Net.PeerToPeer.PeerNameResolver

Namespace:  System.Net.PeerToPeer
Assembly:  System.Net (in System.Net.dll)
public class PeerNameResolver

The PeerNameResolver type exposes the following members.

  NameDescription
Public methodPeerNameResolverInitializes a new default instance of the PeerNameResolver class.
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnResolveCompletedReturns peer resolution data after the ResolveCompleted event is raised.
Protected methodOnResolveProgressChangedReturns peer resolution progress data when the ResolveProgressChanged event is raised.
Public methodResolve(PeerName)Resolves the specified PeerName in all clouds known to the calling peer.
Public methodResolve(PeerName, Int32)Resolves the specified peer name in all clouds known to the calling peer, returning no more than the specified number of PeerNameRecord objects.
Public methodResolve(PeerName, Cloud)Resolves the specified PeerName in the specified Cloud.
Public methodResolve(PeerName, Cloud, Int32)Resolves the specified PeerName in the specified Cloud, returning no more than the specified number of PeerNameRecord objects.
Public methodResolveAsync(PeerName, Object)Begins an asynchronous peer name resolution operation for the specified PeerName in all clouds known to the calling peer.
Public methodResolveAsync(PeerName, Int32, Object)Begins an asynchronous peer name resolution operation for the specified PeerName in all clouds known to the calling peer, returning no more than maxRecords entries for the peer name.
Public methodResolveAsync(PeerName, Cloud, Object)Begins an asynchronous peer name resolution operation for the specified PeerName in the specified Cloud.
Public methodResolveAsync(PeerName, Cloud, Int32, Object)Begins an asynchronous peer name resolution operation for the specified PeerName in the specified Cloud. The resolution operation will resolve no more than maxRecords entries for the specified peer name.
Public methodResolveAsyncCancelCancels the specified asynchronous peer name resolution request.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public eventResolveCompletedThe ResolveCompleted event is signaled when a peer name resolution request for a specific PeerName has completed.
Public eventResolveProgressChangedThis event is signaled whenever a PeerNameRecord object is found in response to a ResolveAsync operation for a specific PeerName.
Top

A PeerNameRecord which contains all the information for the PeerName that was published in the Cloud or cloud(s) that were queried during the resolve process.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft. All rights reserved.