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

AF SDK Reference

AFTable.LinkExternal Method (IDbDataAdapter)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTable.LinkExternal Method (IDbDataAdapter)

Note: This API is now obsolete.

This method allows the table to be linked to an external database.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

[BrowsableAttribute(false)]
[ObsoleteAttribute("This method has been replaced by the 'LinkExternal(IDbDataAdapter,bool,SecureString)' method.")]
public void LinkExternal(
	IDbDataAdapter dataAdapter
)
<BrowsableAttribute(false)>
<ObsoleteAttribute("This method has been replaced by the 'LinkExternal(IDbDataAdapter,bool,SecureString)' method.")>
Public Sub LinkExternal ( 
	dataAdapter As IDbDataAdapter
)

Dim instance As AFTable
Dim dataAdapter As IDbDataAdapter

instance.LinkExternal(dataAdapter)
public:
[BrowsableAttribute(false)]
[ObsoleteAttribute(L"This method has been replaced by the 'LinkExternal(IDbDataAdapter,bool,SecureString)' method.")]
void LinkExternal(
	IDbDataAdapter^ dataAdapter
)
[<BrowsableAttribute(false)>]
[<ObsoleteAttribute("This method has been replaced by the 'LinkExternal(IDbDataAdapter,bool,SecureString)' method.")>]
member LinkExternal : 
        dataAdapter : IDbDataAdapter -> unit 

Parameters

dataAdapter
Type: System.DataIDbDataAdapter
A DataAdapter which defines the external link. Passing will reset the AFTable back to an internal table.

Remarks

The data adapter's connection string must be defined in terms of the PI AF Server. Once defined, use the Table property to retrieve the data.

The user must have Admin permission to call this method.

Use the PISystem.Supports method to check if the PISystem supports the ExternallyLinkedTable and the ExternallyLinkedTableWithNonImpersonatedUser features.

Version Information

AFSDK

Obsolete (compiler warning) in 3.1.1
Obsolete (compiler warning) in 3.1.0
Obsolete (compiler warning) in 3.0.2
Obsolete (compiler warning) in 3.0.1
Obsolete (compiler warning) in 3.0.0
Obsolete (compiler warning) in 2.10.11
Obsolete (compiler warning) in 2.10.5
Obsolete (compiler warning) in 2.10.0
Obsolete (compiler warning) in 2.10
Obsolete (compiler warning) in 2.9.5
Obsolete (compiler warning) in 2.9
Obsolete (compiler warning) in 2.8.5
Obsolete (compiler warning) in 2.8
Obsolete (compiler warning) in 2.7.5
Obsolete (compiler warning) in 2.7
Obsolete (compiler warning) in 2.6
Obsolete (compiler warning) in 2.5
Obsolete (compiler warning) in 2.4

See Also

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