This documentation is archived and is not being maintained.
PeerNearMe Class
Visual Studio 2010
Represents a peer located by the "People Near Me" infrastructure.
System::Object
System.Net.PeerToPeer.Collaboration::Peer
System.Net.PeerToPeer.Collaboration::PeerNearMe
System.Net.PeerToPeer.Collaboration::Peer
System.Net.PeerToPeer.Collaboration::PeerNearMe
Assembly: System.Net (in System.Net.dll)
The PeerNearMe type exposes the following members.
| 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 | Gets a value specifying if the Peer is currently 'online'. (Inherited from Peer.) |
![]() | 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 | Generates a PeerNearMe object from the provided PeerEndPoint. |
![]() | Dispose() | Releases all resources used by the Peer object. (Inherited from Peer.) |
![]() | 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(Peer) | Performs a case-sensitive comparison of the current Peer and the specified peer. (Inherited from Peer.) |
![]() | Equals(PeerNearMe) | Compares the PeerNearMe to the specified PeerNearMe instance. |
![]() ![]() | Equals(Object, Object) | Determines whether the specified PeerNearMe instances are considered equal. |
![]() | 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 | 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 | Gets the available presence information for a PeerEndPoint. (Inherited from Peer.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InternalRefreshData | 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 | Cancels the invitation that was sent with the InviteAsync method. (Inherited from Peer.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnInviteCompleted | Raises the InviteCompleted event. (Inherited from Peer.) |
![]() | OnRefreshDataCompleted | Signals the RefreshDataCompleted event. |
![]() | RefreshData | Initiates a network operation to retrieve the application, object and presence data specific to a PeerNearMe instance. |
![]() | RefreshDataAsync | 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 | 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.
Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
