Partager via


CreateResource method of the MSCluster_Resource class

Creates a resource.

Syntax

void CreateResource(
  [in]      string  Group,
  [in]      string  ResourceName,
  [in]      string  ResourceType,
  [in]      boolean SeparateMonitor = ,
  [in, out] string  Id
);

Parameters

Group [in]

The name of the group to receive the resource.

ResourceName [in]

The name to assign to the resource.

ResourceType [in]

The type of resource to create.

SeparateMonitor [in]

TRUE if the resource needs a separate resource monitor; otherwise, FALSE. The default value is FALSE.

Id [in, out]

Id of the resource.

**Windows Server 2008 R2 and Windows Server 2008: **

This parameter is not supported before Windows Server 2012.

Return value

This method has no return values.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\MSCluster
MOF
ClusWmi.mof
DLL
ClusWMI.dll

See also

MSCluster_Resource