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

AF SDK Reference

AFCase.Publish Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFCase.Publish Method
The output AFAttribute values of the analysis case run are published to the locations specified by the attribute's data reference configuration.

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

Syntax

public void Publish()
Public Sub Publish

Dim instance As AFCase

instance.Publish()
public:
void Publish()
member Publish : unit -> unit 

Remarks

The AFAnalysisRule used by this method is defined by the AFAnalysis that owns this case. The IsPublished and PublishTime properties are updated whenever this method is called and completes without errors. If an error occurs, a message will be generated using AFTrace and will continue with the next result output.

The Before event is raised before this operation is started to allow clients an opportunity to perform any required validation or processing before starting the operation. The operation can also be canceled by setting the Cancel property of the AFCaseCancelEventArgs parameter to the event. The Executing event is raised during the execution of the operation to allow clients an opportunity to cancel and not wait for the operation to complete. The After event is raised after the operation is completed to allow clients an opportunity to perform any post-processing.

Security note Security Note
You must have Execute security rights to publish a case.

Version Information

AFSDK


See Also

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