PeerContact.OnApplicationChanged(ApplicationChangedEventArgs) 方法

定义

引发 ApplicationChanged 事件。Raises the ApplicationChanged event.

protected:
 virtual void OnApplicationChanged(System::Net::PeerToPeer::Collaboration::ApplicationChangedEventArgs ^ appChangedArgs);
protected virtual void OnApplicationChanged (System.Net.PeerToPeer.Collaboration.ApplicationChangedEventArgs appChangedArgs);
abstract member OnApplicationChanged : System.Net.PeerToPeer.Collaboration.ApplicationChangedEventArgs -> unit
override this.OnApplicationChanged : System.Net.PeerToPeer.Collaboration.ApplicationChangedEventArgs -> unit
Protected Overridable Sub OnApplicationChanged (appChangedArgs As ApplicationChangedEventArgs)

参数

appChangedArgs
ApplicationChangedEventArgs

ApplicationChangedEventArgs 对象,要将其要传递给与 ApplicationChanged 事件关联的代理。The ApplicationChangedEventArgs object to be passed to delegates associated with the ApplicationChanged event.

注解

当应用程序在协作基础结构中启动、注册或取消注册时,将发生应用程序更改。Application changes occur when an application is launched, registered or unregistered from the collaboration infrastructure. 当对等节点加入或离开协作会话或更改网络终结点位置时,它们也会发生。They also occur when peers join or leave a collaboration session or change network endpoint locations. 对等范围更改也可能会影响应用程序的更改。Peer scope changes may also effect a change in an application.

从此类继承的类可以重写此方法,以便在事件发生时执行其他任务。Classes that inherit from this class can override this method to perform additional tasks when the event occurs.

继承者说明

在派生类中,请务必调用此方法的基类实现,以便已注册的委托接收事件。In a derived class, be sure to call the base class implementation of this method so that registered delegates receive the event.

适用于

另请参阅