Поделиться через


ClusResDependencies.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 dependency collection.

Syntax

ClusResDependencies.CreateItem( _
  ByVal ResourceName, _
  ByVal ResourceType, _
  ByVal GroupName, _
  ByVal Flag _
)

Parameters

ResourceName

String containing the name of the resource to create.

ResourceType

String specifying the type of the resource to create.

GroupName

String containing the name of the group to which the new resource will belong.

Flag

Value 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 new resource.

Remarks

Resources added to a ClusResDependencies collection become dependencies of the resource from which the collection was obtained.

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

See also

ClusResDependencies

ClusResource