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

AF SDK Reference

AFCase Constructor (AFAnalysis, AFElementTemplate)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFCase Constructor (AFAnalysis, AFElementTemplate)
Initializes a new instance of an AFCase with the specified AFElementTemplate.

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

Syntax

public AFCase(
	AFAnalysis analysis,
	AFElementTemplate template
)
Public Sub New ( 
	analysis As AFAnalysis,
	template As AFElementTemplate
)

Dim analysis As AFAnalysis
Dim template As AFElementTemplate

Dim instance As New AFCase(analysis, 
	template)
public:
AFCase(
	AFAnalysis^ analysis, 
	AFElementTemplate^ template
)
new : 
        analysis : AFAnalysis * 
        template : AFElementTemplate -> AFCase

Parameters

analysis
Type: OSIsoft.AF.AnalysisAFAnalysis
The new AFCase is added to the specified AFAnalysis.
template
Type: OSIsoft.AF.AssetAFElementTemplate
The AFElementTemplate that is to be used to create a new instance of the AFCase object. This will override the template specified by the CaseTemplate property of the specified analysis. The specified template must have its InstanceType set to AFCase. If , then the CaseTemplate of the specified analysis will be used.

Remarks

The new AFCase is automatically added to the specified analysis. The new case is defined to use the specified template.

Version Information

AFSDK


See Also

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