PeerNearMe Class
Represents a peer located by the "People Near Me" infrastructure.
Assembly: System.Net (in System.Net.dll)
System.Net.PeerToPeer.Collaboration::Peer
System.Net.PeerToPeer.Collaboration::PeerNearMe
| Name | Description | |
|---|---|---|
![]() | PeerNearMe() | Initializes a new default instance of the PeerNearMe class. |
![]() | PeerNearMe(SerializationInfo^, StreamingContext) | Initializes a new PeerNearMe instance with the associated parameters required for serialization. |
| Name | Description | |
|---|---|---|
![]() | IsOnline | |
![]() | Nickname | Gets or sets a String representing the Nickname of the PeerNearMe object. |
![]() | PeerEndPoints | Gets the PeerEndPointCollection associated with the Peer.(Inherited from Peer.) |
![]() | SynchronizingObject | When this property value is set, all events not fired as the result of an asynchronous operation will have the associated event handlers called back on the thread that created the specific SynchronizingObject.(Inherited from Peer.) |
| Name | Description | |
|---|---|---|
![]() | AddToContactManager() | Generates a PeerContact from the PeerNearMe object and associates it with the ContactManager. |
![]() | AddToContactManager(String^, String^, MailAddress^) | Generates a PeerContact with the associated descriptive parameters from the PeerNearMe object and associates it with the ContactManager. |
![]() ![]() | CreateFromPeerEndPoint(PeerEndPoint^) | Generates a PeerNearMe object from the provided PeerEndPoint. |
![]() | Dispose() | |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the PeerNearMe object and optionally releases the managed resources.(Overrides Peer::Dispose(Boolean).) |
![]() | Equals(Object^) | Compares the PeerNearMe instance to the specified object.(Overrides Object::Equals(Object^).) |
![]() ![]() | Equals(Object^, Object^) | Determines whether the specified PeerNearMe instances are considered equal. |
![]() | Equals(Peer^) | |
![]() | Equals(PeerNearMe^) | Compares the PeerNearMe to the specified PeerNearMe instance. |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Returns the hash code for the PeerNearMe instance.(Overrides Object::GetHashCode().) |
![]() | GetObjectData(SerializationInfo^, StreamingContext) | Populates a SerializationInfo with the data required to serialize the specified PeerNearMe. A derived type must call the base type GetObjectData method.(Overrides Peer::GetObjectData(SerializationInfo^, StreamingContext).) |
![]() | GetObjects() | Gets the collection of data objects from a local cache.(Inherited from Peer.) |
![]() | GetObjects(Guid) | Gets the Peer object associated with the supplied Guid from the PeerObjectCollection.(Inherited from Peer.) |
![]() | GetPresenceInfo(PeerEndPoint^) | Gets the available presence information for a PeerEndPoint.(Inherited from Peer.) |
![]() | GetType() | |
![]() | InternalRefreshData(Object^) | Initiates a network operation to retrieve the application, object and presence data specific to a PeerNearMe instance. |
![]() | Invite() | Sends an invitation to join a peer collaboration application to a remote peer.(Overrides Peer::Invite().) |
![]() | Invite(PeerApplication^, String^, array<Byte>^) | Sends an invitation to join a peer collaboration application to a remote peer that includes data that describes or specifies the application invite.(Overrides Peer::Invite(PeerApplication^, String^, array<Byte>^).) |
![]() | InviteAsync(Object^) | Receives an invitation response from a peer regarding joining a peer collaboration application.(Overrides Peer::InviteAsync(Object^).) |
![]() | InviteAsync(PeerApplication^, String^, array<Byte>^, Object^) | Receives an invitation response from a peer regarding an invitation to a peer collaboration application.(Overrides Peer::InviteAsync(PeerApplication^, String^, array<Byte>^, Object^).) |
![]() | InviteAsyncCancel(Object^) | Cancels the invitation that was sent with the InviteAsync method. (Inherited from Peer.) |
![]() | MemberwiseClone() | |
![]() | OnInviteCompleted(InviteCompletedEventArgs^) | Raises the InviteCompleted event.(Inherited from Peer.) |
![]() | OnRefreshDataCompleted(RefreshDataCompletedEventArgs^) | Signals the RefreshDataCompleted event. |
![]() | RefreshData() | Initiates a network operation to retrieve the application, object and presence data specific to a PeerNearMe instance. |
![]() | RefreshDataAsync(Object^) | Initiates a network operation to retrieve the application, object and presence data specific to a PeerNearMe instance. |
![]() | ToString() | Returns String that represents a PeerNearMe instance.(Overrides Peer::ToString().) |
| Name | Description | |
|---|---|---|
![]() | InviteCompleted | Raised when the invitation process for a remote peer has completed.(Inherited from Peer.) |
![]() ![]() | PeerNearMeChanged | Signaled when a new PeerNearMe instance is found, no longer available, or the associated PeerEndPoint object information has changed. |
![]() | RefreshDataCompleted | Signaled when the RefreshData or RefreshDataAsync operation for the PeerNearMe instance is completed. |
| Name | Description | |
|---|---|---|
![]() ![]() | ISerializable::GetObjectData(SerializationInfo^, StreamingContext) | Populates the current PeerNearMe instance with the data obtained from the serialized source. |
An instance of this class cannot be created directly. Instead, a reference to the peers "near" the calling peer is obtained by using the static GetPeersNearMe method to return a collection of nearby peers.
A peer represented by a PeerNearMe object is not necessarily in the calling peer's address book.
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.






