SPHealthAnalyzer.ParseService Method
Returns the data type of the service with the specified type name.
Namespace: Microsoft.SharePoint.Administration.Health
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function ParseService ( _
service As String _
) As Type
'Usage
Dim service As String
Dim returnValue As Type
returnValue = SPHealthAnalyzer.ParseService(service)
public static Type ParseService(
string service
)
Parameters
service
Type: System.StringA string that contains the type name for a service that is associated with a rule.
Return Value
Type: System.Type
The data type for the specified service or SPTimerService if the type cannot be found.