PeerApplication Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an application that is available for use with the Peer Collaboration infrastructure.
public ref class PeerApplication : IDisposable, IEquatable<System::Net::PeerToPeer::Collaboration::PeerApplication ^>, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class PeerApplication : IDisposable, IEquatable<System.Net.PeerToPeer.Collaboration.PeerApplication>, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type PeerApplication = class
interface IDisposable
interface IEquatable<PeerApplication>
interface ISerializable
Public Class PeerApplication
Implements IDisposable, IEquatable(Of PeerApplication), ISerializable
- Inheritance
-
PeerApplication
- Attributes
- Implements
An application is a set of software or software features available to a peer from an endpoint. Commonly, this refers to network-enabled software packages such as games or other collaborative applications. A PeerApplication defines the set of software applications or components available for use with the PeerCollaboration network. This network enables infrastructure participants to initiate usage of this application. They may initiate a collaboration session using the application identified by this class.
After constructing an instance of this class and setting the appropriate properties, this object may be used in System.Net.PeerToPeer collaboration sessions. Its use is accomplished by passing it to the peer collaboration RegisterApplication and UnregisterApplication methods, which will enable or disable it.
The globally unique Id and PeerApplicationRegistrationType properties of this instance must be set before the application can successfully be registered.
After registering an application with the Peer Collaboration infrastructure, the registration information persists in the registry. This makes the application available to collaboration applications even after the program which registered the application has exited.
Changing the properties on an application instance after it has been registered has no effect on the registration. To update the registration, the application must be unregistered and then registered again with the new information.
Peer |
Initializes a new default instance of the PeerApplication type. |
Peer |
Initializes a new PeerApplication instance with the supplied application ID, description, scope, and data elements. |
Peer |
Initializes a new instance of the PeerApplication type with the data required for serialization. |
Command |
Gets or sets command-line parameters to use when initiating a PeerApplication. |
Data |
Gets or sets data associated with the current PeerApplication instance. |
Description |
Gets or sets a Unicode String that describes the PeerApplication. |
Id |
Gets or sets the user-defined Guid associated with the PeerApplication. |
Path |
Gets or sets the path that designates where the PeerApplication executable file resides on the local file system. |
Peer |
Gets or sets the scope in which the PeerApplication is registered for collaboration. |
Synchronizing |
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. |
Dispose() |
Releases resources used by the PeerApplication object. |
Dispose(Boolean) |
Releases the unmanaged resources used by the PeerApplication object and optionally releases the managed resources. |
Equals(Object, Object) |
Determines whether the specified PeerApplication objects are considered equal. |
Equals(Object) |
Compares the PeerApplication to the specified Object. |
Equals(Peer |
Compares the PeerApplication to the specified PeerApplication instance. |
Get |
Returns the hash code for a PeerApplication instance. |
Get |
Populates a SerializationInfo with the data needed to serialize the target PeerApplication. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
On |
Raises the ApplicationChanged event. |
To |
Returns a string that contains the Id and Description of the PeerApplication instance. |
Application |
This event is raised whenever a PeerApplication is added, updated or deleted by a remote peer on a subscribed endpoint. |
ISerializable. |
Implements the ISerializable interface and returns the data required to serialize the target PeerApplication. |
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: