SPHealthAnalysisRuleAutomaticExecutionParameters.ServiceType property
Gets or sets a type that specifies a service that must be present on any server where the rule runs.
Namespace: Microsoft.SharePoint.Administration.Health
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property ServiceType As Type
Get
Set
'Usage
Dim instance As SPHealthAnalysisRuleAutomaticExecutionParameters
Dim value As Type
value = instance.ServiceType
instance.ServiceType = value
public Type ServiceType { get; set; }
Property value
Type: System.Type
A Type object that defines the required service.
Remarks
For most rules, you can set the value of this property to typeof(SPTimerService). However, if your rule is designed to run only on servers where an instance of a particular service is available, you can use this property to specify that service. The rule will only run on servers containing an online instance of the SPServiceInstance class associated with the SPService type defined by this property.
See also
Reference
SPHealthAnalysisRuleAutomaticExecutionParameters class