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

AF SDK Reference

AFTimeRules.Add Method (AFPlugIn)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeRules.Add Method (AFPlugIn)

Note: This API is now obsolete.

Adds a new time rule to the schedule.

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

Syntax

[BrowsableAttribute(false)]
[ObsoleteAttribute("Child TimeRules are not supported.")]
public AFTimeRule Add(
	AFPlugIn plugIn
)
<BrowsableAttribute(false)>
<ObsoleteAttribute("Child TimeRules are not supported.")>
Public Function Add ( 
	plugIn As AFPlugIn
) As AFTimeRule

Dim instance As AFTimeRules
Dim plugIn As AFPlugIn
Dim returnValue As AFTimeRule

returnValue = instance.Add(plugIn)
public:
[BrowsableAttribute(false)]
[ObsoleteAttribute(L"Child TimeRules are not supported.")]
AFTimeRule^ Add(
	AFPlugIn^ plugIn
)
[<BrowsableAttribute(false)>]
[<ObsoleteAttribute("Child TimeRules are not supported.")>]
member Add : 
        plugIn : AFPlugIn -> AFTimeRule 

Parameters

plugIn
Type: OSIsoft.AFAFPlugIn
The TimeRule PlugIn to add to the collection.

Return Value

Type: AFTimeRule
Returns the newly created object that was added to the collection.

Version Information

AFSDK

Supported in: 2.5, 2.4
Obsolete (compiler warning) in 3.1.1
Obsolete (compiler warning) in 3.1.0
Obsolete (compiler warning) in 3.0.2
Obsolete (compiler warning) in 3.0.1
Obsolete (compiler warning) in 3.0.0
Obsolete (compiler warning) in 2.10.11
Obsolete (compiler warning) in 2.10.5
Obsolete (compiler warning) in 2.10.0
Obsolete (compiler warning) in 2.10
Obsolete (compiler warning) in 2.9.5
Obsolete (compiler warning) in 2.9
Obsolete (compiler warning) in 2.8.5
Obsolete (compiler warning) in 2.8
Obsolete (compiler warning) in 2.7.5
Obsolete (compiler warning) in 2.7
Obsolete (compiler warning) in 2.6

See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in