Partager via


RaiseConnectionEventSpecial Method

Enables client-side Web Parts that are ActiveX controls to raise connection events by transforming VBArrays to ECMAScript (JScript, JavaScript) arrays, converting them to an appropriate EventArgs structure, and then calling the RaiseConnectionEvent method.

RaiseConnectionEventSpecial (InterfaceName, EventName, EventArgsName[], EventArgsValues[])

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.

EventArgsName  An array of argument names.

EventArgsValues  An array of argument values. The array values should have the same array position as their corresponding names in EventArgsName.

Remarks

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

Example

Microsoft Visual Basic Scripting Edition:

WPSC.RaiseConnectionEventSpecial "myFilterProvider_WPQ_", "SetFilter", eventArgsName[], eventArgsValues[] 

Microsoft JScript:

WPSC.RaiseConnectionEventSpecial("myFilterProvider_WPQ_", "SetFilter", eventArgsName[], eventArgsValues[]);

Requirements

Platforms: Microsoft Windows Server 2003

RaiseConnectionEvent Method | Web Part Page Services Component (WPSC) OverviewApplies to: WPSC Object