PeerNameResolver.Resolve Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Resolve(PeerName) Resolves the specified PeerName in all clouds known to the calling peer.
Public method Resolve(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 method Resolve(PeerName, Cloud) Resolves the specified PeerName in the specified Cloud.
Public method Resolve(PeerName, Cloud, Int32) Resolves the specified PeerName in the specified Cloud, returning no more than the specified number of PeerNameRecord objects.
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft