Represents an application that is available for use with the Peer Collaboration infrastructure.
Assembly: System.Net (in System.Net.dll)
Thetype exposes the following members.
|PeerApplication()||Initializes a new default instance of the type.|
|PeerApplication(SerializationInfo, StreamingContext)||Initializes a new instance of the type with the data required for serialization.|
|PeerApplication(Guid, String, Byte, String, String, PeerScope)||Initializes a new instance with the supplied application ID, description, scope, and data elements.|
|CommandLineArgs||Gets or sets command-line parameters to use when initiating a .|
|Data||Gets or sets data associated with the current instance.|
|Description||Gets or sets a Unicode String that describes the .|
|Id||Gets or sets the user-defined Guid associated with the .|
|Path||Gets or sets the path that designates where the executable file resides on the local file system.|
|PeerScope||Gets or sets the scope in which the is registered for collaboration.|
|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.|
|Dispose()||Releases resources used by the object.|
|Dispose(Boolean)||Releases the unmanaged resources used by the object and optionally releases the managed resources.|
|Equals(Object)||Compares the to the specified Object. (Overrides Object.Equals(Object).)|
|Equals(PeerApplication)||Compares the to the specified instance.|
|Equals(Object, Object)||Determines whether the specified objects are considered equal.|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Returns the hash code for a instance. (Overrides Object.GetHashCode().)|
|GetObjectData||Populates a SerializationInfo with the data needed to serialize the target .|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|OnApplicationChanged||Raises the ApplicationChanged event.|
|ToString||Returns a string that contains the Id and Description of the instance. (Overrides Object.ToString().)|
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 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.
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 deregistered and then registered again with the new information.