AFTransfer.SetSource Method (AFPort)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Set the element and port that are the source of the transfer.
Namespace: OSIsoft.AF.EventFrame
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void SetSource( AFPort sourcePort )
Public Sub SetSource ( sourcePort As AFPort ) Dim instance As AFTransfer Dim sourcePort As AFPort instance.SetSource(sourcePort)
public: void SetSource( AFPort^ sourcePort )
member SetSource : sourcePort : AFPort -> unit
Parameters
- sourcePort
- Type: OSIsoft.AF.ModelingAFPort
The source port of the transfer. The type of this port must be Output. If , then the Source and SourcePort will be cleared.
Remarks
The specified port's Element will be connected
to the default Input port of this transfer.