ערוך

שתף באמצעות


PeerNearMe Class

Definition

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

public ref class PeerNearMe : System::Net::PeerToPeer::Collaboration::Peer, IEquatable<System::Net::PeerToPeer::Collaboration::PeerNearMe ^>, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class PeerNearMe : System.Net.PeerToPeer.Collaboration.Peer, IEquatable<System.Net.PeerToPeer.Collaboration.PeerNearMe>, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type PeerNearMe = class
    inherit Peer
    interface IEquatable<PeerNearMe>
    interface ISerializable
Public Class PeerNearMe
Inherits Peer
Implements IEquatable(Of PeerNearMe), ISerializable
Inheritance
PeerNearMe
Attributes
Implements

Remarks

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.

Constructors

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.

Properties

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)

Methods

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

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.

Equals(Object, Object)

Determines whether the specified PeerNearMe instances are considered equal.

Equals(Object)

Compares the PeerNearMe instance to the specified 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.

GetHashCode()

Returns the hash code for the PeerNearMe instance.

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data required to serialize the specified PeerNearMe. A derived type must call the base type GetObjectData(SerializationInfo, StreamingContext) method.

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

Gets the Type of the current instance.

(Inherited from Object)
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.

Invite(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.

InviteAsync(Object)

Receives an invitation response from a peer regarding joining a peer collaboration application.

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

Receives an invitation response from a peer regarding an invitation to a peer collaboration application.

InviteAsyncCancel(Object)

Cancels the invitation that was sent with the InviteAsync(PeerApplication, String, Byte[], Object) method.

(Inherited from Peer)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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.

Events

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(Object) operation for the PeerNearMe instance is completed.

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Populates the current PeerNearMe instance with the data obtained from the serialized source.

Applies to

See also