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

AF SDK Reference

AFAnalysisRule.FindAnalysisRule Method (AFAnalysisTemplate, Guid)

AFAnalysisRule.FindAnalysisRule Method (AFAnalysisTemplate, Guid)

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

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

Syntax

public static AFAnalysisRule FindAnalysisRule(
	AFAnalysisTemplate template,
	Guid id
)
Public Shared Function FindAnalysisRule ( 
	template As AFAnalysisTemplate,
	id As Guid
) As AFAnalysisRule

Dim template As AFAnalysisTemplate
Dim id As Guid
Dim returnValue As AFAnalysisRule

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

Parameters

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

Return Value

Type: AFAnalysisRule
Returns the AFAnalysisRule 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