Version

CollapseAxisTupleMemberAsync Method

Sends an asynchronous request to the OLAP server to collapse the specified axis tuple member, and raises the CollapseAxisTupleMemberAsyncCompleted event when the server sends the response.
Syntax
'Declaration
 
Public Sub CollapseAxisTupleMemberAsync( _
   ByVal axisType As AxisType, _
   ByVal tupleIndex As Integer, _
   ByVal memberIndex As Integer, _
   Optional ByVal update As Boolean, _
   Optional ByVal control As Control _
) 
public void CollapseAxisTupleMemberAsync( 
   AxisType axisType,
   int tupleIndex,
   int memberIndex,
   bool update,
   Control control
)

Parameters

axisType
Identifies the axis to which the tuple member belongs, i.e., the row or column axis.
tupleIndex
The index of the tuple to collapse.
memberIndex
The index of the member to collapse.
update

Optional boolean value indicating whether to update the data source immediately.

The default value is true, which causes the request to be sent to the OLAP server immediately, and raises the CollapseAxisTupleMemberAsyncCompleted event when the server's response has been received.

If false is specified, the request is not sent to the server until the UpdateAsync method is called.

Note that when false is specified, the CollapseAxisTupleMemberAsyncCompleted event does not occur.

control
Optional reference to a Control. If specified, the CollapseAxisTupleMemberAsyncCompleted event is raised on the thread on which this control's handle was created. This approach makes it possible to access control members directly from the event handler.
Remarks

If the specified member is not expandable, or is currently collapsed, this method returns without incident.

This method returns immediately after issuing the request to the OLAP server so as not to block the calling thread. The actual collapse, however, does not occur until the server returns this request, which happens indeterminately.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also