Partager via


ClusResource.State property

[The State property is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Returns a description of the operational condition of a resource.

This property is read-only.

Syntax

ClusResource.State

Property value

Long that receives a constant describing the state of the resource. The values are enumerated from the CLUSTER_RESOURCE_STATE enumeration.

ClusterResourceStateUnknown (-1)

The operation was not successful. For more information about the error, call the function GetLastError.

ClusterResourceInherited (0)

The resource has been inherited.

ClusterResourceInitializing (1)

The resource is performing initialization.

ClusterResourceOnline (2)

The resource is operational and functioning normally.

ClusterResourceOffline (3)

The resource is not operational.

ClusterResourceFailed (4)

The resource has failed.

ClusterResourcePending (128)

The resource is in the process of coming online or going offline.

ClusterResourceOnlinePending (129)

The resource is in the process of coming online.

ClusterResourceOfflinePending (130)

The resource is in the process of going offline.

Remarks

For information about making constants defined by the Cluster Automation Server type library (MsClus.tlb) available to scripts, see Creating a Cluster Automation Server Script.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Header
MsClus.h
IDL
MsClus.idl
Type library
MsClus.tlb
DLL
MsClus.dll
IID
IID_ISClusResource is defined as F2E6070A-2631-11D1-89F1-00A0C90D061E

See also

ClusResource

CLUSTER_RESOURCE_STATE