ResolveCompletedEventArgs 构造函数

定义

初始化 ResolveCompletedEventArgs 类的新实例。

public:
 ResolveCompletedEventArgs(System::Net::PeerToPeer::PeerNameRecordCollection ^ peerNameRecordCollection, Exception ^ error, bool canceled, System::Object ^ userToken);
public ResolveCompletedEventArgs (System.Net.PeerToPeer.PeerNameRecordCollection peerNameRecordCollection, Exception error, bool canceled, object userToken);
new System.Net.PeerToPeer.ResolveCompletedEventArgs : System.Net.PeerToPeer.PeerNameRecordCollection * Exception * bool * obj -> System.Net.PeerToPeer.ResolveCompletedEventArgs
Public Sub New (peerNameRecordCollection As PeerNameRecordCollection, error As Exception, canceled As Boolean, userToken As Object)

参数

peerNameRecordCollection
PeerNameRecordCollection

与已解析的对等名称关联的集合。

error
Exception

如果出现错误,则返回异常。

canceled
Boolean

如果 ResolveAsync 操作被取消,则为 true;否则为 false

userToken
Object

ResolveAsync 操作启动时指定的用户令牌。

适用于