AFTableConnection.GetTableConnectionFromConnectionString Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Return a table connection from a connection string
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFTableConnection GetTableConnectionFromConnectionString( AFTable table, string connectionString )
Public Shared Function GetTableConnectionFromConnectionString ( table As AFTable, connectionString As String ) As AFTableConnection Dim table As AFTable Dim connectionString As String Dim returnValue As AFTableConnection returnValue = AFTableConnection.GetTableConnectionFromConnectionString(table, connectionString)
public: static AFTableConnection^ GetTableConnectionFromConnectionString( AFTable^ table, String^ connectionString )
static member GetTableConnectionFromConnectionString : table : AFTable * connectionString : string -> AFTableConnection
Parameters
- table
- Type: OSIsoft.AF.AssetAFTable
An AFTable that is configured with an AFTableConnection connection. - connectionString
- Type: SystemString
The connection string from an AFTable, that is used to find the appropriate AFTableConnection object.
Return Value
Type: AFTableConnectionAFTableConnection object if the table is configured with an AFTableConnection. Null is returned if there is no valid AFTableConnection configured for the AFTable.