ContactManager::CreateContact Method (PeerNearMe^)
.NET Framework (current version)
Creates a PeerContact instance for the specified PeerNearMe object.
Assembly: System.Net (in System.Net.dll)
Parameters
- peerNearMe
-
Type:
System.Net.PeerToPeer.Collaboration::PeerNearMe^
The PeerNearMe to associate with the new PeerContact instance.
Return Value
Type: System.Net.PeerToPeer.Collaboration::PeerContact^A PeerContact instance for the specified PeerNearMe.
| Exception | Condition |
|---|---|
| ArgumentNullException | peerNearMe is null. |
| ObjectDisposedException | This PeerNearMe object has been disposed. |
| PeerToPeerException |
|
Calling this method requires a PermissionState of Unrestricted.
.NET Framework
Available since 3.5
Available since 3.5
Show: