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

AF SDK Reference

AFTableConnection Constructor (String, String, Boolean, SecureString)

AFTableConnection Constructor (String, String, Boolean, SecureString)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTableConnection Constructor (String, String, Boolean, SecureString)
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

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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