Share via


ClusResTypeResources.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 ClusResTypeResources collection.

Syntax

ClusResTypeResources.CreateItem( _
  ByVal strResName, _
  ByVal strGroupName, _
  ByVal lFlag _
)

Parameters

strResName

String containing the name of the new resource.

strGroupName

String containing the name of the group in which to place the new resource.

lFlag

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

A ClusResource object that receives 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_ISClusResTypeResources is defined as F2E60714-2631-11D1-89F1-00A0C90D061E

See also

ClusResource

ClusResTypeResources