WMS_PLUGIN_EVENT_TYPE
Previous | Next |
WMS_PLUGIN_EVENT_TYPE
The WMS_PLUGIN_EVENT_TYPE enumeration type identifies plug-in related events.
Syntax
typedef enum WMS_PLUGIN_EVENT_TYPE{ WMS_EVENT_PLUGIN_ADD = 0, WMS_EVENT_PLUGIN_REMOVE = 1, WMS_EVENT_PLUGIN_ENABLE = 2, WMS_EVENT_PLUGIN_DISABLE = 3, WMS_EVENT_PLUGIN_PROPERTY_CHANGE = 4, WMS_EVENT_PLUGIN_ERROR = 5, WMS_EVENT_PLUGIN_NAME_CHANGE = 6, WMS_EVENT_PLUGIN_LOAD_TYPE_CHANGE = 7, WMS_EVENT_PLUGIN_SELECTION_ORDER_CHANGE = 8 };
Members
WMS_EVENT_PLUGIN_ADD
The server attempted either to clone a plug-in or to add a plug-in. The HRESULT from the WMS_EVENT structure can be used to determine whether the attempt was successful. You can clone a plug-in by calling the Clone method on the IWMSPlugins interface. You can call the Refresh method on the IWMSPlugins interface to update the list of registered plug-ins, thereby adding the clone to the server.
WMS_EVENT_PLUGIN_REMOVE
The server attempted to remove a plug-in. The HRESULT from the WMS_EVENT structure can be used to determine whether the attempt was successful. You can remove all but the last instance of a plug-in by calling the Remove method on the IWMSPlugins interface.
WMS_EVENT_PLUGIN_ENABLE
The server attempted to enable a plug-in. The HRESULT from the WMS_EVENT structure can be used to determine whether the attempt was successful. You can call the Enabled property on the IWMSPlugin interface to enable a plug-in.
WMS_EVENT_PLUGIN_DISABLE
The server attempted to disable a plug-in. The HRESULT from the WMS_EVENT structure can be used to determine whether the attempt was successful. You can call the Enabled property on the IWMSPlugin interface to disable a plug-in.
WMS_EVENT_PLUGIN_PROPERTY_CHANGE
An item was added or changed in the IWMSNamedValues interface for a plug-in. The previous and new values are indicated in the command context by the values of the @WMS\_COMMAND\_CONTEXT\_EVENT\_OLD\_VALUE and the @WMS\_COMMAND\_CONTEXT\_EVENT\_NEW\_VALUE properties respectively. The @WMS\_COMMAND\_CONTEXT\_EVENT\_PROPERTY\_NAME property in the command context is set to the name of the property that was altered.
WMS_EVENT_PLUGIN_ERROR
A plug-in error occurred. If an error occurs while a plug-in is running, the plug-in is responsible for raising the event. However, if a server cannot load, initialize, or enable a plug-in, the server raises the event. You can call the LogEvent method on the IWMSEventLog interface with a severity level of WMS_EVENT_LOG_LEVEL_ERROR to log the error in the Windows Event Viewer. When this event is raised for an authorization or authentication plug-in, the server or the associated publishing point will become unresponsive.
WMS_EVENT_PLUGIN_NAME_CHANGE
The name of a plug-in was changed. You can change the name by calling the Name property on the IWMSPlugin interface. The previous and new values are indicated in the command context by the @WMS\_COMMAND\_CONTEXT\_EVENT\_OLD\_VALUE and the @WMS\_COMMAND\_CONTEXT\_EVENT\_NEW\_VALUE properties respectively.
WMS_EVENT_PLUGIN_LOAD_TYPE_CHANGE
The LoadType property for a plug-in was changed. You can do this by calling the LoadType property on the IWMSPlugin interface . The previous and new values are indicated in the command context by the @WMS\_COMMAND\_CONTEXT\_EVENT\_OLD\_VALUE and the @WMS\_COMMAND\_CONTEXT\_EVENT\_NEW\_VALUE properties respectively.
WMS_EVENT_PLUGIN_SELECTION_ORDER_CHANGE
The plug-in selection order changed. You can do this by calling the SelectionOrder property on the IWMSPlugin interface . The previous and new values are indicated in the command context by the @WMS\_COMMAND\_CONTEXT\_EVENT\_OLD\_VALUE and the @WMS\_COMMAND\_CONTEXT\_EVENT\_NEW\_VALUE properties respectively.
Remarks
This enumeration identifies subevents related to the WMS_EVENT_PLUGIN event in the WMS_EVENT_TYPE enumeration. You can find the subevent by examining the WMS_COMMAND_CONTEXT_EVENT value in the command context.
Requirements
Header: event.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also (General)
See Also (Visual Basic .NET)
- IWMSEventLog.LogEvent (Visual Basic .NET)
- IWMSNamedValues Object (Visual Basic .NET)
- IWMSPlugin.Enabled (Visual Basic .NET)
- IWMSPlugin.LoadType (Visual Basic .NET)
- IWMSPlugin.Name (Visual Basic .NET)
- IWMSPlugin.SelectionOrder (Visual Basic .NET)
- IWMSPlugins.Clone (Visual Basic .NET)
- IWMSPlugins.Refresh (Visual Basic .NET)
- IWMSPlugins.Remove (Visual Basic .NET)
See Also (C#)
- IWMSEventLog.LogEvent (C#)
- IWMSNamedValues Object (C#)
- IWMSPlugin.Enabled (C#)
- IWMSPlugin.LoadType (C#)
- IWMSPlugin.Name (C#)
- IWMSPlugin.SelectionOrder (C#)
- IWMSPlugins.Clone (C#)
- IWMSPlugins.Refresh (C#)
- IWMSPlugins.Remove (C#)
See Also (C++)
- IWMSEventLog::LogEvent
- IWMSNamedValues Interface
- IWMSPlugin::put_Enabled
- IWMSPlugin::put_LoadType
- IWMSPlugin::put_Name
- IWMSPlugin::put_SelectionOrder
- IWMSPlugins::Clone
- IWMSPlugins::Refresh
- IWMSPlugins::Remove
Previous | Next |