AFCase.Publish Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.
| You must have Execute security rights to publish a case. |