次の方法で共有


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

Syntax

ClusResDependents.CreateItem( _
  ByVal ResourceName, _
  ByVal ResourceType, _
  ByVal GroupName, _
  ByVal dwFlags _
)

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.

dwFlags

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 ClusResDependents collection become dependents 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_ISClusResDependents is defined as F2E6072E-2631-11D1-89F1-00A0C90D061E

See also

ClusResDependents

ClusResource