PeerNearMe Class

PeerNearMe Class

.NET Framework (current version)
 

Represents a peer located by the "People Near Me" infrastructure.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

System.Object
  System.Net.PeerToPeer.Collaboration.Peer
    System.Net.PeerToPeer.Collaboration.PeerNearMe

[SerializableAttribute]
public class PeerNearMe : Peer, IEquatable<PeerNearMe>, ISerializable

NameDescription
System_CAPS_pubmethodPeerNearMe()

Initializes a new default instance of the PeerNearMe class.

System_CAPS_protmethodPeerNearMe(SerializationInfo, StreamingContext)

Initializes a new PeerNearMe instance with the associated parameters required for serialization.

NameDescription
System_CAPS_pubpropertyIsOnline

Gets a value specifying if the Peer is currently 'online'.(Inherited from Peer.)

System_CAPS_pubpropertyNickname

Gets or sets a String representing the Nickname of the PeerNearMe object.

System_CAPS_pubpropertyPeerEndPoints

Gets the PeerEndPointCollection associated with the Peer.(Inherited from Peer.)

System_CAPS_pubpropertySynchronizingObject

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.)

NameDescription
System_CAPS_pubmethodAddToContactManager()

Generates a PeerContact from the PeerNearMe object and associates it with the ContactManager.

System_CAPS_pubmethodAddToContactManager(String, String, MailAddress)

Generates a PeerContact with the associated descriptive parameters from the PeerNearMe object and associates it with the ContactManager.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromPeerEndPoint(PeerEndPoint)

Generates a PeerNearMe object from the provided PeerEndPoint.

System_CAPS_pubmethodDispose()

Releases all resources used by the Peer object.(Inherited from Peer.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the PeerNearMe object and optionally releases the managed resources.(Overrides Peer.Dispose(Boolean).)

System_CAPS_pubmethodEquals(Object)

Compares the PeerNearMe instance to the specified object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodSystem_CAPS_staticEquals(Object, Object)

Determines whether the specified PeerNearMe instances are considered equal.

System_CAPS_pubmethodEquals(Peer)

Performs a case-sensitive comparison of the current Peer and the specified peer.(Inherited from Peer.)

System_CAPS_pubmethodEquals(PeerNearMe)

Compares the PeerNearMe to the specified PeerNearMe instance.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for the PeerNearMe instance.(Overrides Object.GetHashCode().)

System_CAPS_protmethodGetObjectData(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).)

System_CAPS_pubmethodGetObjects()

Gets the collection of data objects from a local cache.(Inherited from Peer.)

System_CAPS_pubmethodGetObjects(Guid)

Gets the Peer object associated with the supplied Guid from the PeerObjectCollection.(Inherited from Peer.)

System_CAPS_pubmethodGetPresenceInfo(PeerEndPoint)

Gets the available presence information for a PeerEndPoint.(Inherited from Peer.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodInternalRefreshData(Object)

Initiates a network operation to retrieve the application, object and presence data specific to a PeerNearMe instance.

System_CAPS_pubmethodInvite()

Sends an invitation to join a peer collaboration application to a remote peer.(Overrides Peer.Invite().)

System_CAPS_pubmethodInvite(PeerApplication, String, 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, Byte[]).)

System_CAPS_pubmethodInviteAsync(Object)

Receives an invitation response from a peer regarding joining a peer collaboration application.(Overrides Peer.InviteAsync(Object).)

System_CAPS_pubmethodInviteAsync(PeerApplication, String, Byte[], Object)

Receives an invitation response from a peer regarding an invitation to a peer collaboration application.(Overrides Peer.InviteAsync(PeerApplication, String, Byte[], Object).)

System_CAPS_pubmethodInviteAsyncCancel(Object)

Cancels the invitation that was sent with the InviteAsync method. (Inherited from Peer.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnInviteCompleted(InviteCompletedEventArgs)

Raises the InviteCompleted event.(Inherited from Peer.)

System_CAPS_protmethodOnRefreshDataCompleted(RefreshDataCompletedEventArgs)

Signals the RefreshDataCompleted event.

System_CAPS_pubmethodRefreshData()

Initiates a network operation to retrieve the application, object and presence data specific to a PeerNearMe instance.

System_CAPS_pubmethodRefreshDataAsync(Object)

Initiates a network operation to retrieve the application, object and presence data specific to a PeerNearMe instance.

System_CAPS_pubmethodToString()

Returns String that represents a PeerNearMe instance.(Overrides Peer.ToString().)

NameDescription
System_CAPS_pubeventInviteCompleted

Raised when the invitation process for a remote peer has completed.(Inherited from Peer.)

System_CAPS_pubeventSystem_CAPS_staticPeerNearMeChanged

Signaled when a new PeerNearMe instance is found, no longer available, or the associated PeerEndPoint object information has changed.

System_CAPS_pubeventRefreshDataCompleted

Signaled when the RefreshData or RefreshDataAsync operation for the PeerNearMe instance is completed.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.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.

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft