共用方式為


SPHealthReportCreationData constructor (String, String, Boolean, Boolean, Boolean, Boolean, Boolean, List<String>)

初始化為基礎的報表,以指定的參數是預存程序的 SQL 查詢的名稱和欄的清單, SPHealthReportCreationData類別的新執行個體。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Sub New ( _
    name As String, _
    sql As String, _
    isStoreProcedure As Boolean, _
    supportSelectWebApplication As Boolean, _
    supportLogTime As Boolean, _
    supportMachineName As Boolean, _
    supportMaxRows As Boolean, _
    columnNames As List(Of String) _
)
'用途
Dim name As String
Dim sql As String
Dim isStoreProcedure As Boolean
Dim supportSelectWebApplication As Boolean
Dim supportLogTime As Boolean
Dim supportMachineName As Boolean
Dim supportMaxRows As Boolean
Dim columnNames As List(Of String)

Dim instance As New SPHealthReportCreationData(name, sql, _
    isStoreProcedure, supportSelectWebApplication, _
    supportLogTime, supportMachineName, _
    supportMaxRows, columnNames)
public SPHealthReportCreationData(
    string name,
    string sql,
    bool isStoreProcedure,
    bool supportSelectWebApplication,
    bool supportLogTime,
    bool supportMachineName,
    bool supportMaxRows,
    List<string> columnNames
)

參數

  • isStoreProcedure
    Type: System.Boolean

    true如果查詢是預存程序 ;否則,請false。

  • supportSelectWebApplication
    Type: System.Boolean

    true如果查詢支援 @WebApplicationId 參數,其中 WebApplicationId 是識別 Web 應用程式的 GUID。

  • supportLogTime
    Type: System.Boolean

    true如果查詢支援 @StartTime@EndTime 參數,表示將記錄檔的時間範圍。

  • supportMachineName
    Type: System.Boolean

    true如果查詢支援 @MachineName 參數,以指出伺服器陣列中的伺服器。

  • supportMaxRows
    Type: System.Boolean

    true如果查詢支援 @MaxRows 參數,會指出要傳回列的數上限。

請參閱

參照

SPHealthReportCreationData class

SPHealthReportCreationData members

SPHealthReportCreationData overload

Microsoft.SharePoint.Administration namespace