共用方式為


ShowDrillThrough 方法

Displays the results of the specified drillthrough operation.

命名空間:  Microsoft.DataWarehouse.Interfaces
組件:  Microsoft.DataWarehouse.Interfaces (在 Microsoft.DataWarehouse.Interfaces.dll 中)

語法

'宣告
Sub ShowDrillThrough
'用途
Dim instance As IMiningModelDrillThroughHandler

instance.ShowDrillThrough()
void ShowDrillThrough()
void ShowDrillThrough()
abstract ShowDrillThrough : unit -> unit 
function ShowDrillThrough()

備註

The ShowDrillThrough method is called when drill-through results need to be displayed.

For more information about drillthrough, see 針對採礦模型和採礦結構使用鑽研 (Analysis Services - 資料採礦). For information about setting drillthrough permissions, see AllowDrillThrough and AllowDrillThrough.

For example, if a user in SQL Server Management Studio opens a mining model in the viewer and selects one of the drillthrough options from the shortcut menu, the ShowDrillThrough method is called to display drillthrough results for the selected node.

Hosting applications can use the Connection and QueryString properties to construct and execute the command used in the ShowDrillThrough method. Other properties, such as MiningModelName and NodeText) can be used with the ShowDrillThrough method to indicate the model and node that the drillthrough results apply to.

The following example illustrates the use of this method:

範例

public void ShowDrillThrough()
     {
          IDbCommand command = Connection.CreateCommand();
          command.CommandText = QueryString;
          IDataReader reader = command.ExecuteReader(CommandBehavior.SequentialAccess);
while (reader.Read())
        {
        // Render this row.
        }
    }