Export (0) Print
Expand All

PeerContact Methods

The PeerContact type exposes the following members.

  Name Description
Public method Dispose() Releases all resources used by the Peer object. (Inherited from Peer.)
Protected method Dispose(Boolean) Releases the unmanaged resources and optionally releases the managed resources used by the PeerApplication object. (Overrides Peer.Dispose(Boolean).)
Public method Equals(Object) Compares the PeerContact instance to the specified object. (Overrides Object.Equals(Object).)
Public method Equals(Peer) Performs a case-sensitive comparison of the current Peer and the specified peer. (Inherited from Peer.)
Public method Equals(PeerContact) Compares the PeerContact to the specified PeerContact instance.
Public method Static member Equals(Object, Object) Determines whether the specified PeerContact instances are considered equal.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member FromXml Creates a PeerContact instance based on provided XML data.
Public method GetApplications() Retrieves the PeerApplication objects that were registered by the remote peer into the local cache.
Public method GetApplications(Guid) Gets the collection of PeerApplication objects with the specified Guid from the local cache.
Public method GetApplications(PeerEndPoint) Gets the PeerApplicationCollection associated with the specified PeerEndPoint.
Public method GetApplications(PeerEndPoint, Guid) Gets the PeerApplicationCollection associated with the specified PeerEndPoint.
Public method GetHashCode Returns the hash code for a PeerContact instance. (Overrides Object.GetHashCode().)
Protected method GetObjectData Populates a SerializationInfo object with the data needed to serialize the PeerContact. (Overrides Peer.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetObjects() Gets the collection of data objects from a local cache. (Inherited from Peer.)
Public method GetObjects(Guid) Gets the Peer object associated with the supplied Guid from the PeerObjectCollection. (Inherited from Peer.)
Public method GetObjects(PeerEndPoint) Gets the PeerObjectCollection registered by the specified PeerEndPoint and stored in the local cache.
Public method GetObjects(PeerEndPoint, Guid) Gets the collection of peer objects registered by the specified PeerEndPoint and registered in the PeerApplication identified by the specified Guid.
Public method GetPresenceInfo Gets the available presence information for a PeerEndPoint. (Inherited from Peer.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Invite() Sends an invitation to join into peer collaboration sponsored by the sender. (Overrides Peer.Invite().)
Public method Invite(PeerEndPoint) Sends an invitation to a specific endpoint to join into peer collaboration with the sender of the invitation.
Public method Invite(PeerApplication, String, Byte[]) Sends the specified invitation to join into the specified PeerApplication sponsored by the sender. (Overrides Peer.Invite(PeerApplication, String, Byte[]).)
Public method Invite(PeerEndPoint, PeerApplication, String, Byte[]) Sends the specified invitation to the specified PeerEndPoint to join into the specified PeerCollaboration application sponsored by the sender.
Public method InviteAsync(Object) Begins an asynchronous invitation operation for an endpoint to join a PeerCollaboration application sponsored by the sender of the invitation. The invitation is identified using the specified Object. (Overrides Peer.InviteAsync(Object).)
Public method InviteAsync(PeerEndPoint, Object) Begins an asynchronous invitation operation for the specified peer endpoint to join a PeerCollaboration application sponsored by the sender of the invitation. The invitation is identified using the specified Object.
Public method InviteAsync(PeerApplication, String, Byte[], Object) Begins an asynchronous invitation operation for the specified peer endpoints to join the specified collaboration PeerApplication sponsored by the sender of the invitation. (Overrides Peer.InviteAsync(PeerApplication, String, Byte[], Object).)
Public method InviteAsync(PeerEndPoint, String, Byte[], PeerApplication, Object) Begins an asynchronous invitation operation for the specified peerEndPoint to join the specified collaboration PeerApplication sponsored by the sender of the invitation.
Public method InviteAsyncCancel Cancels the invitation that was sent with the InviteAsync method. (Inherited from Peer.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnApplicationChanged Raises the ApplicationChanged event.
Protected method OnInviteCompleted Raises the InviteCompleted event. (Inherited from Peer.)
Protected method OnObjectChanged Raises the ObjectChanged event when a PeerObject is added, updated or removed by a remote peer.
Protected method OnPresenceChanged Raises the PresenceChanged event when the PeerPresenceInfo of a peer has changed.
Protected method OnSubscribeCompleted Raises the SubscribeCompleted event.
Public method Subscribe Subscribes the calling peer to the PeerContact, and as a result, the peer will receive any future PeerCollaboration events associated with the PeerContact.
Public method SubscribeAsync Asynchronously subscribes the calling peer to the PeerContact, and as a result, the peer will receive any future PeerCollaboration events associated with the PeerContact.
Public method ToString Returns a String representation of the DisplayName associated with the PeerContact. (Overrides Peer.ToString().)
Public method ToXml Serializes the PeerContact to an XML string for persistent storage or network transfer.
Public method Unsubscribe Removes a subscription to the PeerContact and as a result the calling peer no longer receives PeerCollaboration events associated with the PeerContact.
Top

  Name Description
Explicit interface implemetation Private method ISerializable.GetObjectData Implements the ISerializable interface and returns the data needed to serialize the PeerContact instance.
Top
Show:
© 2014 Microsoft