編輯

共用方式為


System.Net.PeerToPeer.Collaboration Namespace

Enhances System.Net.PeerToPeer networking functionality and provides capabilities for serverless managed collaboration sessions.

Classes

ApplicationChangedEventArgs

Provides qualifying information to a callback method when a ApplicationChanged event occurs.

ContactManager

Represents a collection of PeerContact objects which persist in a Windows Address Book.

CreateContactCompletedEventArgs

Provides qualifying information to a callback method when a CreateContactCompleted event occurs.

InviteCompletedEventArgs

Provides qualifying information to a callback method when an InviteCompleted event occurs.

NameChangedEventArgs

Provides qualifying information to a callback method when a NameChanged event occurs.

ObjectChangedEventArgs

Provides qualifying information to a callback method when a ObjectChanged event occurs.

Peer

This class represents a remote peer.

PeerApplication

Represents an application that is available for use with the Peer Collaboration infrastructure.

PeerApplicationCollection

Represents a container for PeerApplication elements. An instance of this type is returned by the GetContacts() static method.

PeerApplicationLaunchInfo

Represents the launch information required by a PeerApplication that has initiated in response to a peer collaboration invitation.

PeerCollaboration

Interacts with the Peer Collaboration infrastructure. Many of the core collaboration scenarios begin with this class.

PeerCollaborationPermission

Specifies the values that define or are used in System.Net.PeerToPeer.Collaboration object permissions.

PeerCollaborationPermissionAttribute

Allows security actions for PeerCollaborationPermission to be applied to code using declarative security. This class cannot be inherited.

PeerContact

Represents a peer for which a user has retrieved extended information.

PeerContactCollection

Represents a container for PeerContact elements. An instance of this type is returned by the GetContacts() static method.

PeerEndPoint

Represents the location of a PeerNearMe, or PeerContact instance specified with a unique network address configuration by describing the current instance of a PeerContact or PeerNearMe within the Peer-to-Peer Collaboration Infrastructure.

PeerEndPointCollection

Represents a container for elements of a PeerEndPoint object. An instance of this type is returned by the Peer class.

PeerInvitationResponse

Represents a response received from a remote peer to an invitation sent via the Invite() or Invite() method.

PeerNearMe

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

PeerNearMeChangedEventArgs

Provides qualifying information to a callback method when a PeerNearMeChanged event occurs.

PeerNearMeCollection

Represents a container for elements of a PeerNearMe object. An instance of this type is returned by the GetPeersNearMe() static method.

PeerObject

Represents a new instance of the PeerObject class with an auto-generated Guid.

PeerObjectCollection

Represents a container for elements of a PeerObject instance.

PeerPresenceInfo

Represents the presence information of a peer.

PresenceChangedEventArgs

Provides qualifying information to a callback method when a PresenceChanged or LocalPresenceChanged event occurs.

RefreshDataCompletedEventArgs

Provides qualifying information to the OnRefreshDataCompleted(RefreshDataCompletedEventArgs) method when RefreshDataCompleted events occur.

SubscribeCompletedEventArgs

Provides qualifying information to a callback method when a SubscribeCompleted event is signaled.

SubscriptionListChangedEventArgs

Provides qualifying information to a callback method when a SubscriptionListChanged event is signaled.

Enums

PeerApplicationRegistrationType

Specifies the type of registration to perform for a PeerApplication or PeerObject registration.

PeerChangeType

Specifies the type of change that occurred for a peer.

PeerInvitationResponseType

Specifies the responses a local peer can receive from an application driven collaboration invitation requests.

PeerPresenceStatus

Specifies the presence status of a peer.

PeerScope

Specifies the current network scope of a peer.

SubscriptionType

Specifies if a remote peer subscribed to the local peer can receive event notifications.

Remarks

The Peer-to-Peer (P2P) Collaboration Infrastructure provides a peer-to-peer network-based framework for collaborative activities, such as network game matchmaking, conferencing, and other interactive multi-participant activities. This serverless infrastructure includes APIs that simplify the process by which applications can track peer presence without a server, send invitations to participants, discover peers on the same subnet, and manage contacts.

Native Peer Collaboration APIs are available on Windows Vista clients in both 32-bit and 64-bit editions. Peer Collaboration APIs are not available on Windows Server 2008.

NOTE: The Collaboration APIs are functional from a service only if the service is impersonating a caller, and the caller is an interactive user (as opposed to a built-in user). Multiple Contact Managers are not supported.

See also