AFAdmin.SetPlugInVerifyLevel Method
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Configures the level of verification required for an AFPlugIn to be loaded from the server.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static void SetPlugInVerifyLevel( PISystem system, AFVerifySignatureLevel level )
Public Shared Sub SetPlugInVerifyLevel ( system As PISystem, level As AFVerifySignatureLevel ) Dim system As PISystem Dim level As AFVerifySignatureLevel AFAdmin.SetPlugInVerifyLevel(system, level)
public: static void SetPlugInVerifyLevel( PISystem^ system, AFVerifySignatureLevel level )
static member SetPlugInVerifyLevel : system : PISystem * level : AFVerifySignatureLevel -> unit
Parameters
- system
- Type: OSIsoft.AFPISystem
The operation will be performed on the specified PISystem. - level
- Type: OSIsoft.AFAFVerifySignatureLevel
Specify the AFVerifySignatureLevel to be used to verify which plug-ins are allowed to be loaded from the server.
Exceptions
| Exception | Condition |
|---|---|
| SecurityException | This exception is thrown when attempting to execute without Admin security rights. |
| ArgumentNullException | This exception is thrown when attempting to execute on a PISystem that is null or deleted. |
| NotSupportedException | This exception is thrown when attempting to execute on a PISystem that does not support the AdminFunctionality feature. |
Remarks
This method is used to configure the level of verification required for an AFPlugIn to be loaded from the server. The AddTrustedProvider(PISystem, String) method can be used to add a trusted provider when the verify level is set to RequireSignedTrustedProvider.
Use the PISystem.Supports method to check if the PISystem supports the AdminFunctionality feature.
| Requires the Admin right to execute. |
| This method will error on servers before AF 2018 R2 (2.10.5). |