3.2.4.10.4 DeleteResourceGroup (Opnum 10)
The DeleteResourceGroup deletes a resource group with the specified identifier.
-
[id(4), helpstring("method DeleteResourceGroup")] HRESULT DeleteResourceGroup( [in] BSTR bstrResourceGroupName );
bstrResourceGroupName: A string that specifies the name of the resource group that is to be deleted.
-
If this parameter is NULL, E_INVALIDARG MUST be returned.
Return Values: This method returns 0x00000000 for success or a negative HRESULT value (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
-
Return value/code
Description
0x00000000
S_OK
Operation successful.
0x80070057
E_INVALIDARG
One or more arguments are invalid.
0xC1FF006F
WRM_ERR_ID_VALUE
The specified name contains characters that are invalid. The name cannot start with a hyphen ("-"), cannot contain spaces, and cannot contain any of the following characters:
-
\ / ? * | : < > " , ;
0xC1FF012E
WRM_ERR_RESOURCEGROUPID_INVALID
The specified resource group does not exist.
0xC1FF0137
WRM_ERR_DELETING_RESOURCE_GROUP
resource group that are members of one or more RAPs cannot be deleted.
0xC1FF0138
WRM_ERR_RESERVED_RESOURCEGROUP
The specified resource group is built-in. It cannot be modified.
-
Additional IWRMResourceGroup interface methods are specified in section 3.2.4.10.