Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFChangedEventArgs Class

  • Last UpdatedNov 18, 2025
  • 5 minute read
AFChangedEventArgs Class
Provides data for the Changed event.

Inheritance Hierarchy

SystemObject
  SystemEventArgs
    OSIsoft.AFAFEventArgs
      OSIsoft.AFAFChangedEventArgs

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public sealed class AFChangedEventArgs : AFEventArgs, 
	IEquatable<AFChangedEventArgs>
Public NotInheritable Class AFChangedEventArgs
	Inherits AFEventArgs
	Implements IEquatable(Of AFChangedEventArgs)

Dim instance As AFChangedEventArgs
public ref class AFChangedEventArgs sealed : public AFEventArgs, 
	IEquatable<AFChangedEventArgs^>
[<SealedAttribute>]
type AFChangedEventArgs =  
    class
        inherit AFEventArgs
        interface IEquatable<AFChangedEventArgs>
    end

The AFChangedEventArgs type exposes the following members.

Constructors

  NameDescription
Public method
AFChangedEventArgs(AFChangeAction)
Initializes a new instance of the AFChangedEventArgs class for an object change action.
Public method
AFChangedEventArgs(AFChangeAction, AFIdentity, Guid, Guid)
Initializes a new instance of the AFChangedEventArgs class for a sub-object change action.

Properties

  NameDescription
Public property
Action
Gets an action that specifies how the object changed.
Public property
ID
The ID of the sub-object that changed.
(Overrides AFEventArgsID.)
Public property
Identity
The Identity of the sub-object that changed.
Public property
IsSubObjectEvent
Indicates if the arguments represent a sub-object event.
Public property
ParentID
The ID of the parent object that changed.

Methods

  NameDescription
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
Equals(AFChangedEventArgs)
Indicates whether the current object is equal to another object of the same type.
Public method
FindObject
Retrieves the AFObject associated with the event.
Public method
GetHashCode
Gets the hash code for this instance of the object which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)

Operators

  NameDescription
Public operatorStatic member
Equality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic member
Inequality
The inequality operator (!=) compares its operands to determine if they are not equal.

Remarks

A Changed event is raised when something about the object or one of its sub-objects has been modified. For example, this event is raised when the description of the object is modified. See AFChangeAction for a description of what will cause an event to be raised for each of the action values.

When the object has sub-objects that also implement the IAFChangedEvent interface, then it will receive SubObjectAdd, SubObjectRemove, and SubObjectRefresh events for these sub-objects when items are added or removed from this sub-collection. To receive events on changes to existing sub-objects (e.g. changes to its Description property), you must add an event handler to the sub-object's Changed event.

The AFDatabase.Changed event will also receive SubObjectAdd, SubObjectRemove, SubObjectChange, and SubObjectRefresh events for IAFTransactable objects owned by the AFDatabase. For example, if an AFReferenceType is added the AFDatabase will receive a SubObjectAdd event. If the description of an AFElement is modified, then the AFDatabase will receive a SubObjectChange event.

Similarly, the PISystem.Changed event will also receive SubObjectAdd, SubObjectRemove, SubObjectChange, and SubObjectRefresh events for IAFTransactable objects owned by the PISystem.

Version Information

AFSDK


See Also

TitleResults for “How to create a CRG?”Also Available in