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

AF SDK Reference

AFTimeRule.FindTimeRule Method (AFAnalysisTemplate, Guid)

AFTimeRule.FindTimeRule Method (AFAnalysisTemplate, Guid)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeRule.FindTimeRule Method (AFAnalysisTemplate, Guid)
Retrieves the AFTimeRule object from the AFAnalysisTemplate with the specified unique identifier.

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

Syntax

public static AFTimeRule FindTimeRule(
	AFAnalysisTemplate template,
	Guid id
)
Public Shared Function FindTimeRule ( 
	template As AFAnalysisTemplate,
	id As Guid
) As AFTimeRule

Dim template As AFAnalysisTemplate
Dim id As Guid
Dim returnValue As AFTimeRule

returnValue = AFTimeRule.FindTimeRule(template, 
	id)
public:
static AFTimeRule^ FindTimeRule(
	AFAnalysisTemplate^ template, 
	Guid id
)
static member FindTimeRule : 
        template : AFAnalysisTemplate * 
        id : Guid -> AFTimeRule 

Parameters

template
Type: OSIsoft.AF.AnalysisAFAnalysisTemplate
The AFAnalysisTemplate to search for the AFTimeRule identified by the specified id parameter.
id
Type: SystemGuid
The unique identifier of the AFTimeRule to search for in the specified template.

Return Value

Type: AFTimeRule
Returns the AFTimeRule identified by the id in the specified template.

Version Information

AFSDK


See Also

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