HealthInformation Constructor (String, String, HealthState)
Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2
Initializes a new instance of the HealthInformation class.
Namespace: System.Fabric.Health
Assembly: System.Fabric (in System.Fabric.dll)
Syntax
public HealthInformation(
string sourceId,
string property,
HealthState healthState
)
Parameters
sourceId
Type: System.StringThe source of the report. Cannot be null or empty. It can't start with "System.", which is reserved keyword for system components reporting.
property
Type: System.StringThe property of the report. Cannot be null or empty.
healthState
Type: System.Fabric.Health.HealthStateThe health state of the report. Must be specified. Must be one of the Error, Warning or Ok values.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | sourceId cannot be null. |
ArgumentException | sourceId cannot be empty. |
ArgumentException | Specified healthState is not supported. |
ArgumentNullException | property cannot be null. |
ArgumentException | property cannot be empty. |
See Also
HealthInformation Class
System.Fabric.Health Namespace
Return to top