PeerApplication Class

PeerApplication Class

 

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

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

System.Object
  System.Net.PeerToPeer.Collaboration.PeerApplication

[SerializableAttribute]
public class PeerApplication : IDisposable, IEquatable<PeerApplication>, 
	ISerializable

NameDescription
System_CAPS_pubmethodPeerApplication()

Initializes a new default instance of the PeerApplication type.

System_CAPS_pubmethodPeerApplication(Guid, String, Byte[], String, String, PeerScope)

Initializes a new PeerApplication instance with the supplied application ID, description, scope, and data elements.

System_CAPS_protmethodPeerApplication(SerializationInfo, StreamingContext)

Initializes a new instance of the PeerApplication type with the data required for serialization.

NameDescription
System_CAPS_pubpropertyCommandLineArgs

Gets or sets command-line parameters to use when initiating a PeerApplication.

System_CAPS_pubpropertyData

Gets or sets data associated with the current PeerApplication instance.

System_CAPS_pubpropertyDescription

Gets or sets a Unicode String that describes the PeerApplication.

System_CAPS_pubpropertyId

Gets or sets the user-defined Guid associated with the PeerApplication.

System_CAPS_pubpropertyPath

Gets or sets the path that designates where the PeerApplication executable file resides on the local file system.

System_CAPS_pubpropertyPeerScope

Gets or sets the scope in which the PeerApplication is registered for collaboration.

System_CAPS_pubpropertySynchronizingObject

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.

NameDescription
System_CAPS_pubmethodDispose()

Releases resources used by the PeerApplication object.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the PeerApplication object and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Compares the PeerApplication to the specified Object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodSystem_CAPS_staticEquals(Object, Object)

Determines whether the specified PeerApplication objects are considered equal.

System_CAPS_pubmethodEquals(PeerApplication)

Compares the PeerApplication to the specified PeerApplication instance.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for a PeerApplication instance.(Overrides Object.GetHashCode().)

System_CAPS_protmethodGetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the target PeerApplication.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnApplicationChanged(ApplicationChangedEventArgs)

Raises the ApplicationChanged event.

System_CAPS_pubmethodToString()

Returns a string that contains the Id and Description of the PeerApplication instance.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubeventApplicationChanged

This event is raised whenever a PeerApplication is added, updated or deleted by a remote peer on a subscribed endpoint.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

Implements the ISerializable interface and returns the data required to serialize the target PeerApplication.

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 deregistered and then registered again with the new information.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft