AFTimeRule.GetEditor(T) Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Returns an instance of an editor of the specified type.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public virtual T GetEditor<T>() where T : class
Public Overridable Function GetEditor(Of T As Class) As T Dim instance As AFTimeRule Dim returnValue As T returnValue = instance.GetEditor()
public: generic<typename T> where T : ref class virtual T GetEditor()
abstract GetEditor : unit -> 'T when 'T : not struct override GetEditor : unit -> 'T when 'T : not struct
Type Parameters
- T
- The type of editor desired.
Return Value
Type: TAn instance of the specified editor with its context set to the current AFTimeRule instance or null if no editor of the specified type is available.