SPHealthReportCreationData Constructor (String, String, Boolean, Boolean, Boolean, Boolean, Boolean)
Initializes a new instance of the SPHealthReportCreationData class based on the name of the report and an SQL query that is a stored procedure with specified parameters.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
name As String, _
sql As String, _
isStoreProcedure As Boolean, _
supportSelectWebApplication As Boolean, _
supportLogTime As Boolean, _
supportMachineName As Boolean, _
supportMaxRows As Boolean _
)
'Usage
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 instance As New SPHealthReportCreationData(name, sql, _
isStoreProcedure, supportSelectWebApplication, _
supportLogTime, supportMachineName, _
supportMaxRows)
public SPHealthReportCreationData(
string name,
string sql,
bool isStoreProcedure,
bool supportSelectWebApplication,
bool supportLogTime,
bool supportMachineName,
bool supportMaxRows
)
Parameters
name
Type: System.StringThe name of the report.
sql
Type: System.StringThe SQL query.
isStoreProcedure
Type: System.Booleantrue if the query is a stored procedure; otherwise, false.
supportSelectWebApplication
Type: System.Booleantrue if the query supports the @WebApplicationId parameter, where WebApplicationId is a GUID that identifies the Web application.
supportLogTime
Type: System.Booleantrue if the query supports @StartTime and @EndTime parameters that indicate the time range of the log.
supportMachineName
Type: System.Booleantrue if the query supports the @MachineName parameter that indicates a server in the farm.
supportMaxRows
Type: System.Booleantrue if the query supports the @MaxRows parameter that indicates the maximum number of rows to return.
See Also
Reference
SPHealthReportCreationData Class
SPHealthReportCreationData Members