Export (0) Print
Expand All

PeerNameResolver.Resolve Method (PeerName, Cloud)

Resolves the specified PeerName in the specified Cloud.

Namespace:  System.Net.PeerToPeer
Assembly:  System.Net (in System.Net.dll)

Public Function Resolve ( _
	peerName As PeerName, _
	cloud As Cloud _
) As PeerNameRecordCollection


Type: System.Net.PeerToPeer.PeerName

The PeerName to resolve.

Type: System.Net.PeerToPeer.Cloud

The Cloud in which to resolve the peer name.

Return Value

Type: System.Net.PeerToPeer.PeerNameRecordCollection
PeerNameRecordCollection that contains all peer name records (represented as PeerNameRecord objects) associated with the specified peer name. For unsecured peer names, the same PeerName can be registered by different users in the same Cloud, and associated with different endpoints.


The peerName parameter is set to Nothing.


The supplied peer name cannot be resolved.

If the PeerName cannot be resolved (i.e., the peer name is not published) an PeerToPeerException is thrown.

For unsecured peer names, the same name can be registered (and associated with different endpoints) by different peers within the same cloud.

For every Resolve method, there is an equivalent ResolveAsync method. Their parameter lists are identical, except that the ResolveAsync method includes a system token for asynchronous event handling.

If the Cloud parameter is Nothing, the PeerNameResolver uses the Available shortcut to fill in the Name, Scope, and ScopeId.

The ResolveCompleted event will be raised if the resolve operation completes in error or is canceled.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

© 2014 Microsoft