Bewerken

Share via


PeerCollaboration.DeleteObject(PeerObject) Method

Definition

Unregisters a PeerObject associated with the calling peer.

public:
 static void DeleteObject(System::Net::PeerToPeer::Collaboration::PeerObject ^ peerObject);
[System.Security.SecurityCritical]
public static void DeleteObject (System.Net.PeerToPeer.Collaboration.PeerObject peerObject);
[<System.Security.SecurityCritical>]
static member DeleteObject : System.Net.PeerToPeer.Collaboration.PeerObject -> unit
Public Shared Sub DeleteObject (peerObject As PeerObject)

Parameters

peerObject
PeerObject

The PeerObject to unregister.

Attributes

Exceptions

The peerObject parameter cannot be null.

Unable to complete DeleteObject(PeerObject) operation.

Remarks

Peer objects are automatically unregistered (removed) from the Peer Collaboration infrastructure when a reference to the object is no longer valid. If a caller does not maintain a reference to the object, it is unregistered from the Peer Collaboration infrastructure. Alternatively, an object can be manually unregistered by using this method.

Calling this method requires a PermissionState of Unrestricted. This state is created when the Peer collaboration session begins.

Applies to

See also