IFsrmFileManagementJob::CreateCustomAction method (fsrmreports.h)

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMFileManagementJob class.]

Creates a custom action object.

Syntax

HRESULT CreateCustomAction(
  [out] IFsrmActionCommand **customAction
);

Parameters

[out] customAction

An IFsrmActionCommand interface that you can use to specify a custom action to perform if the job's property conditions are met.

Return value

The method returns the following return values. Implementers should return an HRESULT error code for any other errors.

Remarks

To get the custom action, access the CustomAction property.

Create a custom action only if the job's OperationType is set to FsrmFileManagementType_Custom.

For a list of macros supported, perform a "get" operation on the IFsrmFileManagementJobManager::ActionVariables and IFsrmFileManagementJobManager::ActionVariableDescriptions properties.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header fsrmreports.h
DLL SrmSvc.dll

See also

IFsrmActionCommand::Arguments

IFsrmFileManagementJob

MSFT_FSRMFileManagementJob