次の方法で共有


ClusResource.ChangeResourceGroup method

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

Removes the resource from its current group and places it in a different group.

Syntax

ClusResource.ChangeResourceGroup( _
  ByVal objResGroup _
)

Parameters

objResGroup

The ClusResGroup object that should add the resource as a member.

Return value

This method does not return a value.

Remarks

Both groups must be hosted by the same node at the time the resource is moved.

If the resource is involved in a dependency relationship with one or more resources, all the resources in the dependency tree will change to the new group as well. For example, in the situation shown in the following diagram, changing resource B to group 2 will move the entire dependency tree (resources A, X, and Y) to group 2.

For more information, see Resource Dependencies.

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

ClusResGroup

ClusResource