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

AF SDK Reference

AFModelAnalysis Constructor (AFDatabase, String, AFAnalysisTemplate)

AFModelAnalysis Constructor (AFDatabase, String, AFAnalysisTemplate)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFModelAnalysis Constructor (AFDatabase, String, AFAnalysisTemplate)
Initializes a new instance of the class with the specified name.

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

Syntax

public AFModelAnalysis(
	AFDatabase database,
	string name,
	AFAnalysisTemplate template
)
Public Sub New ( 
	database As AFDatabase,
	name As String,
	template As AFAnalysisTemplate
)

Dim database As AFDatabase
Dim name As String
Dim template As AFAnalysisTemplate

Dim instance As New AFModelAnalysis(database, 
	name, template)
public:
AFModelAnalysis(
	AFDatabase^ database, 
	String^ name, 
	AFAnalysisTemplate^ template
)
new : 
        database : AFDatabase * 
        name : string * 
        template : AFAnalysisTemplate -> AFModelAnalysis

Parameters

database
Type: OSIsoft.AFAFDatabase
The new AFModelAnalysis is added to the specified AFDatabase.
name
Type: SystemString
The name of the newly created instance of the class. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.
template
Type: OSIsoft.AF.AnalysisAFAnalysisTemplate
The AFAnalysisTemplate that is to be used to create a new instance of the AFAnalysis object. If , then the analysis is created without a template and properties normally defined by the template will be defined by the analysis instead.

Remarks

The instance of the class created using this constructor does not belong to any collection. To add the object to a collection, use the collection's Add method.

Version Information

AFSDK


See Also

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