AFTableConnection Constructor (String, String, Boolean, SecureString)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Overload to create an AFTableConnection a connection string and optionally a password
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFTableConnection( string name, string connectionString, bool impersonateUser, SecureString password )
Public Sub New ( name As String, connectionString As String, impersonateUser As Boolean, password As SecureString ) Dim name As String Dim connectionString As String Dim impersonateUser As Boolean Dim password As SecureString Dim instance As New AFTableConnection(name, connectionString, impersonateUser, password)
public: AFTableConnection( String^ name, String^ connectionString, bool impersonateUser, SecureString^ password )
new : name : string * connectionString : string * impersonateUser : bool * password : SecureString -> AFTableConnection
Parameters
- name
- Type: SystemString
Name of the new TableConnection - connectionString
- Type: SystemString
Database connection string - impersonateUser
- Type: SystemBoolean
Whether the connection should use impersonation - password
- Type: System.SecuritySecureString
Password for the database connection if impersonation is not used