共用方式為


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.String

    The 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.String

    The property of the report. Cannot be null or empty.

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