Click or drag to resize

EventHandlerAttribute Class

Allows methods to be specified as event handler delegates. If these attributes match a certain event environment, the attached method will be executed.
Inheritance Hierarchy

Namespace:  MFiles.VAF.Common
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = true)]
public class EventHandlerAttribute : ScriptAttributeBase, 
	IEventHandlerAttribute

The EventHandlerAttribute type exposes the following members.

Constructors
  NameDescription
Public methodEventHandlerAttribute
Creates a new instance of this attribute.
Top
Properties
  NameDescription
Public propertyClass
The objects of a specific class to which the method is bound. (All classes assumed if not specified.)
(Inherited from ScriptAttributeBase.)
Public propertyEventType
The type of event to which the method is bound.
Public propertyFilterOptions
Additional options to further filter the type of objects/events to which the method is bound.
Public propertyObjectType
The object type to which the method is bound. (All object types assumed if not specified.)
(Inherited from ScriptAttributeBase.)
Public propertyPriority
The event handling priority. The highest priority handlers receive the event first. Large number indicates a high priority. 0 is the default value.
(Inherited from ScriptAttributeBase.)
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodMatchesEnvironment
MatchesContext checks the event handler attributes against the current event context and determines if the handler should be called.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldclassIdentifier
Internal MFIdentifier version of the Class.
(Inherited from ScriptAttributeBase.)
Protected fieldobjectTypeIdentifier
Internal MFIdentifier of the ObjectType.
(Inherited from ScriptAttributeBase.)
Top
See Also