Partager via


IFsrmActionCommand Interface

 

Used to run a command or script in response to a quota, file screen, or file management job event.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

[GuidAttribute("12937789-E247-4917-9C20-F3EE9C7EE783")]
public interface IFsrmActionCommand : IFsrmAction
[GuidAttribute("12937789-E247-4917-9C20-F3EE9C7EE783")]
public interface class IFsrmActionCommand : IFsrmAction
[<GuidAttribute("12937789-E247-4917-9C20-F3EE9C7EE783")>]
type IFsrmActionCommand = 
    interface
        interface IFsrmAction
    end
<GuidAttribute("12937789-E247-4917-9C20-F3EE9C7EE783")>
Public Interface IFsrmActionCommand
    Inherits IFsrmAction

Properties

Name Description
System_CAPS_pubproperty Account

Retrieves or sets the system account that is used to run the executable program specified in the ExecutablePath property.

This property is read/write.

System_CAPS_pubproperty ActionType

Gets the ActionType property.

System_CAPS_pubproperty Arguments

Retrieves or sets the arguments to pass to the executable program specified in the ExecutablePath property.

This property is read/write.

System_CAPS_pubproperty ExecutablePath

Retrieves or sets the full path to the executable program or script to run.

This property is read/write.

System_CAPS_pubproperty id

Gets the id property.

System_CAPS_pubproperty KillTimeOut

Retrieves or sets the number of minutes the server waits before terminating the process that is running the executable program specified in the ExecutablePath property.

This property is read/write.

System_CAPS_pubproperty LogResult

Retrieves or sets a value that determines whether FSRM logs an Application event that contains the return code of the executable program.

This property is read/write.

System_CAPS_pubproperty MonitorCommand

Retrieves or sets a value that determines whether FSRM will monitor the executable program specified in the ExecutablePath property.

This property is read/write.

System_CAPS_pubproperty RunLimitInterval

Gets and sets the RunLimitInterval property.

System_CAPS_pubproperty WorkingDirectory

Retrieves or sets the working directory in which the executable program will run.

This property is read/write.

Methods

Name Description
System_CAPS_pubmethod Delete()

Removes the command or script from the list of actions for the quota, file screen, or file management job event.

Remarks

To create a command action, call one of the following methods and specify FsrmActionType_Command as the action type:

The create methods return an IFsrmAction interface. To get this interface, call the QueryInterface method and specify IID_IFsrmActionCommand as the interface identifier.

See Also

IFsrmAction
IFsrmActionEmail
IFsrmActionEventLog
IFsrmActionReport
Microsoft.Storage Namespace

Return to top