PeerNameResolver 类
定义
指定使用 PNRP 命名空间提供程序 API 协议将 PeerName 解析为 PeerNameRecord 的值。Specifies the values that resolve a PeerName to a PeerNameRecord using the PNRP Namespace Provider API protocol.
public ref class PeerNameResolver
public class PeerNameResolver
type PeerNameResolver = class
Public Class PeerNameResolver
- 继承
-
PeerNameResolver
注解
一个, PeerNameRecord 其中包含在 PeerName 或 cloud (s 中发布的的所有信息,在 Cloud 解析过程中查询) 。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.
构造函数
| PeerNameResolver() |
初始化 PeerNameResolver 类的新默认实例。Initializes a new default instance of the PeerNameResolver class. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| OnResolveCompleted(ResolveCompletedEventArgs) |
引发 ResolveCompleted 事件后,将返回对等解析数据。Returns peer resolution data after the ResolveCompleted event is raised. |
| OnResolveProgressChanged(ResolveProgressChangedEventArgs) |
引发 ResolveProgressChanged 事件时,将返回对等解析进度数据。Returns peer resolution progress data when the ResolveProgressChanged event is raised. |
| Resolve(PeerName) |
解析调用对等方已知的所有群中指定的 PeerName。Resolves the specified PeerName in all clouds known to the calling peer. |
| Resolve(PeerName, Cloud) |
解析指定 PeerName 中的指定 Cloud。Resolves the specified PeerName in the specified Cloud. |
| Resolve(PeerName, Cloud, Int32) |
解析指定 PeerName 中的指定 Cloud,并返回不超过指定数目的 PeerNameRecord 对象。Resolves the specified PeerName in the specified Cloud, returning no more than the specified number of PeerNameRecord objects. |
| Resolve(PeerName, Int32) |
解析调用对等方已知的所有群中的指定对等名称,并返回不超过指定数目的 PeerNameRecord 对象。Resolves the specified peer name in all clouds known to the calling peer, returning no more than the specified number of PeerNameRecord objects. |
| ResolveAsync(PeerName, Cloud, Int32, Object) |
在指定的 Cloud 中为指定 PeerName 开始异步对等名称解析操作。Begins an asynchronous peer name resolution operation for the specified PeerName in the specified Cloud. 该解析操作为指定的对等名称所解析的条目不会超过 |
| ResolveAsync(PeerName, Cloud, Object) |
在指定的 Cloud 中为指定 PeerName 开始异步对等名称解析操作。Begins an asynchronous peer name resolution operation for the specified PeerName in the specified Cloud. |
| ResolveAsync(PeerName, Int32, Object) |
在调用对等方已知的所有云中为指定 PeerName 开始异步对等名称解析操作,返回不超过 |
| ResolveAsync(PeerName, Object) |
在调用对等方已知的所有云中为指定 PeerName 开始异步对等名称解析操作。Begins an asynchronous peer name resolution operation for the specified PeerName in all clouds known to the calling peer. |
| ResolveAsyncCancel(Object) |
取消指定的异步对等名称解析请求。Cancels the specified asynchronous peer name resolution request. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
事件
| ResolveCompleted |
特定 PeerName 的对等名称解析请求完成时发出 ResolveCompleted 事件信号。The ResolveCompleted event is signaled when a peer name resolution request for a specific PeerName has completed. |
| ResolveProgressChanged |
每当发现 PeerNameRecord 对象时会发出有关此事件的信号,以响应针对特定 PeerName 的 ResolveAsync 操作。This event is signaled whenever a PeerNameRecord object is found in response to a ResolveAsync operation for a specific PeerName. |