Share via


RaiseConnectionEvent Method

Applies to: SharePoint Foundation 2010

Raises a multicast event that notifies other Web Parts within a Web Part Page that an event has occurred.

RaiseConnectionEvent (InterfaceName, EventName, EventParams[])

Parameters

Parameter

Description

InterfaceName

The friendly name of the interface, for example, myFilterProvider rather than IFilterProvider. To ensure uniqueness, this name should contain _WPQ_, which is a token that is replaced with a unique value by the Web Part infrastrusture when the Web Part is rendered.

EventName  

A string indicating the event for which the Web Part is registering.

EventParams[] 

The parameters to pass to the specified event. For events that take multiple parameters, parameters should appear in the array in the same order in which they are defined in the interface. If an event has only a single parameter, no array is required and the parameter can be passed directly with the event.

Remarks

This method can only be used by Web Parts that implement connection interfaces.

Example 1: Microsoft Visual Basic Scripting Edition

Code

WPSC.RaiseConnectionEvent "myFilterProvider_WPQ_", "SetFilter", setFilterEventArgs[]

Example 2: Microsoft JScript

Code

WPSC.RaiseConnectionEvent("myFilterProvider_WPQ_", "SetFilter", setFilterEventArgs[]);

Requirements

Applies to: WPSC Object

See Also

Other Resources

Web Part Page Services Component (WPSC) Object Model