Partager via


ClusResource.ClassInfo property

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

Returns the resource class of the resource.

This property is read-only.

Syntax

ClusResource.ClassInfo

Property value

Long that receives the class information. ClassInfo returns one of the following values enumerated from the CLUSTER_RESOURCE_CLASS enumeration.

CLUS_RESCLASS_UNKNOWN (0)

Resource class is unknown.

CLUS_RESCLASS_STORAGE (1)

Resource is a storage device, such as a Physical Disk resource.

CLUS_RESCLASS_NETWORK (2)

Resource is a network device.

CLUS_RESCLASS_USER (32768)

Resource classes beginning at this value are user-defined.

Remarks

A resource DLL that defines its own resource class should provide a unique identifier for the class that is set to a value greater than CLUS_RESCLASS_USER (32768). CLUS_RESCLASS_USER specifies the beginning for user-defined resource class identifiers.

For information on 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

CLUSTER_RESOURCE_CLASS