Represents a new instance of the PeerObject class with an auto-generated Guid.
Assembly: System.Net (in System.Net.dll)
A PeerObject is run-time data, such as a picture, certificate, or a specific description that is associated with a particular application. The data element of each PeerObject instance must be less than or equal to 16KB in size. After an instance of PeerObject is constructed it is published with the Peer Collaboration Infrastructure via SetObject.
After constructing an instance of this class and setting the appropriate properties this object may be passed to the PeerCollaboration SetObject and DeleteObject methods to enable/disable the publishing of this object for other peers to discover and view.
After registering an object with the collaboration infrastructure the registration information is not persisted in the registry, resulting in different behavior from PeerApplication instances. The object registration is only valid for the lifetime duration of the application which registered the object. Applications should deregister objects when they are no longer required or prior to application exit. By default, a PeerObject is automatically deregistered if the instance goes out of scope.
Changing the properties on a PeerObject instance after it has been registered using the PeerCollaboration registration methods will not update the registration for the PeerObject instance. To effectively update the registration of a specific PeerObject instance, the PeerObject must be deleted and registered again with the new information.
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.