ClusResGroupResources.CreateItem method

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

Creates a resource in the cluster and adds it to the ClusResGroupResources collection.

Syntax

ClusResGroupResources.CreateItem( _
  ByVal ResourceName, _
  ByVal ResourceType, _
  ByVal Flag _
)

Parameters

ResourceName

String containing the name of the resource to add.

ResourceType

String containing the type the resource to add.

Flag

Long indicating how to create the resource. Flag can be set to one of the following values enumerated from the CLUSTER_RESOURCE_CREATE_FLAGS enumeration.

CLUSTER_RESOURCE_DEFAULT_MONITOR (0)

The Cluster service determines the Resource Monitor to which the new resource will be assigned.

CLUSTER_RESOURCE_SEPARATE_MONITOR (1)

Causes the Cluster service to create a separate Resource Monitor dedicated exclusively to the new resource.

Return value

Object that receives ClusResource object that represents the newly added resource.

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_ISClusResGroupResources is defined as F2E606EA-2631-11D1-89F1-00A0C90D061E

See also

ClusResGroupResources

ClusResource