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

AF SDK Reference

Product Family
Current publication

AFConnections.Add Method (AFElement, AFPort, AFElement, AFPort)

Table of Contents

AFConnections.Add Method (AFElement, AFPort, AFElement, AFPort)

AFConnections.Add Method (AFElement, AFPort, AFElement, AFPort)

Note: This API is now obsolete.

The Add method creates a new connection between ports of two elements in the model.

Namespace:  OSIsoft.AF.Modeling
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156

Syntax

[BrowsableAttribute(false)]
[ObsoleteAttribute("Use AFConnections.Add(AFPort sourcePort, AFPort destinationPort).  There is no need to specify both a element and its port.")]
public AFConnection Add(
	AFElement sourceElement,
	AFPort sourcePort,
	AFElement destinationElement,
	AFPort destinationPort
)
<BrowsableAttribute(false)>
<ObsoleteAttribute("Use AFConnections.Add(AFPort sourcePort, AFPort destinationPort).  There is no need to specify both a element and its port.")>
Public Function Add ( 
	sourceElement As AFElement,
	sourcePort As AFPort,
	destinationElement As AFElement,
	destinationPort As AFPort
) As AFConnection

Dim instance As AFConnections
Dim sourceElement As AFElement
Dim sourcePort As AFPort
Dim destinationElement As AFElement
Dim destinationPort As AFPort
Dim returnValue As AFConnection

returnValue = instance.Add(sourceElement, 
	sourcePort, destinationElement, 
	destinationPort)
public:
[BrowsableAttribute(false)]
[ObsoleteAttribute(L"Use AFConnections.Add(AFPort sourcePort, AFPort destinationPort).  There is no need to specify both a element and its port.")]
AFConnection^ Add(
	AFElement^ sourceElement, 
	AFPort^ sourcePort, 
	AFElement^ destinationElement, 
	AFPort^ destinationPort
)
[<BrowsableAttribute(false)>]
[<ObsoleteAttribute("Use AFConnections.Add(AFPort sourcePort, AFPort destinationPort).  There is no need to specify both a element and its port.")>]
member Add : 
        sourceElement : AFElement * 
        sourcePort : AFPort * 
        destinationElement : AFElement * 
        destinationPort : AFPort -> AFConnection 

Parameters

sourceElement
Type: OSIsoft.AF.AssetAFElement
The source element of the connection.
sourcePort
Type: OSIsoft.AF.ModelingAFPort
The source AFPort object of the connection. The port type must be either Output or Undirected.
destinationElement
Type: OSIsoft.AF.AssetAFElement
The destination element of the connection.
destinationPort
Type: OSIsoft.AF.ModelingAFPort
The destination AFPort object of the connection. The port type must be either Input or Undirected.

Return Value

Type: AFConnection
Returns the newly created object that was added.

Remarks

This method is obsolete and has been replaced by the Add(AFPort, AFPort) method.

Version Information

AFSDK

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

Was this topic helpful?