Partager via


IFsrmActionEventLog Interface

 

Used to log an event to the Windows Application event log in response to a quota, file screen, or file management job event.

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

Syntax

[GuidAttribute("4C8F96C3-5D94-4F37-A4F4-F56AB463546F")]
public interface IFsrmActionEventLog : IFsrmAction
[GuidAttribute("4C8F96C3-5D94-4F37-A4F4-F56AB463546F")]
public interface class IFsrmActionEventLog : IFsrmAction
[<GuidAttribute("4C8F96C3-5D94-4F37-A4F4-F56AB463546F")>]
type IFsrmActionEventLog = 
    interface
        interface IFsrmAction
    end
<GuidAttribute("4C8F96C3-5D94-4F37-A4F4-F56AB463546F")>
Public Interface IFsrmActionEventLog
    Inherits IFsrmAction

Properties

Name Description
System_CAPS_pubproperty ActionType

Gets the ActionType property.

System_CAPS_pubproperty EventType

Retrieves or sets the type of event that the action logs when it runs.

This property is read/write.

System_CAPS_pubproperty id

Gets the id property.

System_CAPS_pubproperty MessageText

Retrieves or sets the event text that is logged when the action runs.

This property is read/write.

System_CAPS_pubproperty RunLimitInterval

Gets and sets the RunLimitInterval property.

Methods

Name Description
System_CAPS_pubmethod Delete()

Removes a Windows Application event from the event log for the quota, file screen, or file management job event.

Remarks

To create an event log action, call one of the following methods and specify FsrmActionType_EventLog as the action type:

  1. CreateNotificationAction

  2. CreateAction

  3. CreateThresholdAction

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

For most events, the event identifier is 12325. However, for events that a file management job logs, the event identifier is 8244.

You must set the MessageText property; the other property is optional.

See Also

IFsrmAction
IFsrmActionCommand
IFsrmActionEmail
IFsrmActionReport
Microsoft.Storage Namespace

Return to top