Resolve Method

PeerNameResolver.Resolve Method

 

Resolves a PeerName object to a PeerNameRecord using the PNRP protocol.

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

NameDescription
System_CAPS_pubmethodResolve(PeerName)

Resolves the specified PeerName in all clouds known to the calling peer.

System_CAPS_pubmethodResolve(PeerName, Cloud)

Resolves the specified PeerName in the specified Cloud.

System_CAPS_pubmethodResolve(PeerName, Cloud, Int32)

Resolves the specified PeerName in the specified Cloud, returning no more than the specified number of PeerNameRecord objects.

System_CAPS_pubmethodResolve(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.

A PeerNameRecordCollection. For unsecured peer names, the same PeerName can be registered by different users in the same Cloud, and associated with different endpoints.

This method associates peer names to clouds. Calling the PeerNameResolver method is similar to calling the Resolve method for each peer name record in the PeerNameRecordCollection. Note that using the Resolve method on an individual peer name record does not invalidate resolving multiple peer names.

For every Resolve method, there is an equivalent ResolveAsync method. They are identical in the parameters they are passed, except that the ResolveAsync method includes a system token in its parameter list for asynchronous event handling.

If the Cloud parameter is not supplied, the method uses the Available shortcut to fill in cloud parameters. If the maxRecords parameter is missing, the default value of zero causes an ArgumentOutOfRangeException exception to be thrown.

This event will also be raised if the resolve operation completes in error or is canceled.

Return to top
Show:
© 2016 Microsoft