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 (AFAnalysis, Guid)

AFAnalysisRule.FindAnalysisRule Method (AFAnalysis, Guid)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAnalysisRule.FindAnalysisRule Method (AFAnalysis, Guid)
Retrieves the AFAnalysisRule object from the AFAnalysis 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(
	AFAnalysis analysis,
	Guid id
)
Public Shared Function FindAnalysisRule ( 
	analysis As AFAnalysis,
	id As Guid
) As AFAnalysisRule

Dim analysis As AFAnalysis
Dim id As Guid
Dim returnValue As AFAnalysisRule

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

Parameters

analysis
Type: OSIsoft.AF.AnalysisAFAnalysis
The AFAnalysis 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 analysis.

Return Value

Type: AFAnalysisRule
Returns the AFAnalysisRule identified by the id in the specified analysis.

Version Information

AFSDK


See Also

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