IHealthCheckable.CheckHealth Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CheckHealth(DateTime) |
Returns a value indicating the health of this instance. |
CheckHealth(DateTime, String) |
Returns a value indicating the health of this instance. |
CheckHealth(DateTime)
Returns a value indicating the health of this instance.
public bool CheckHealth (DateTime lastCheckTime);
abstract member CheckHealth : DateTime -> bool
Public Function CheckHealth (lastCheckTime As DateTime) As Boolean
Parameters
- lastCheckTime
- DateTime
The last time which this instance health was checked.
Returns
true
if the instance is healthy, false
otherwise.
Applies to
CheckHealth(DateTime, String)
- Source:
- IHealthCheckable.cs
Returns a value indicating the health of this instance.
public bool CheckHealth (DateTime lastCheckTime, out string reason);
abstract member CheckHealth : DateTime * string -> bool
Public Function CheckHealth (lastCheckTime As DateTime, ByRef reason As String) As Boolean
Parameters
- lastCheckTime
- DateTime
The last time which this instance health was checked.
- reason
- String
If this method returns false
, this parameter will describe the reason for that verdict.
Returns
true
if the instance is healthy, false
otherwise.