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

AF SDK Reference

AFTableConnection.GetTableConnectionFromConnectionString Method

AFTableConnection.GetTableConnectionFromConnectionString Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTableConnection.GetTableConnectionFromConnectionString Method
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: AFTableConnection
AFTableConnection object if the table is configured with an AFTableConnection. Null is returned if there is no valid AFTableConnection configured for the AFTable.

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