RaiseConnectionEventSpecial Method
Applies to: SharePoint Foundation 2010
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[])
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 infrastructure 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 1: Microsoft Visual Basic Scripting Edition
Code
WPSC.RaiseConnectionEventSpecial "myFilterProvider_WPQ_", "SetFilter", eventArgsName[], eventArgsValues[]
Example 2: Microsoft JScript
Code
WPSC.RaiseConnectionEventSpecial("myFilterProvider_WPQ_", "SetFilter", eventArgsName[], eventArgsValues[]);
Requirements
Applies to: WPSC Object