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

AF SDK Reference

AFTransfer.SetSource Method (AFElement, AFPort)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTransfer.SetSource Method (AFElement, AFPort)

Note: This API is now obsolete.

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

[BrowsableAttribute(false)]
[ObsoleteAttribute("Use AFTransfer.SetSource(AFPort sourcePort).  There is no need to specify both a element and its port.")]
public void SetSource(
	AFElement sourceElement,
	AFPort sourcePort
)
<BrowsableAttribute(false)>
<ObsoleteAttribute("Use AFTransfer.SetSource(AFPort sourcePort).  There is no need to specify both a element and its port.")>
Public Sub SetSource ( 
	sourceElement As AFElement,
	sourcePort As AFPort
)

Dim instance As AFTransfer
Dim sourceElement As AFElement
Dim sourcePort As AFPort

instance.SetSource(sourceElement, sourcePort)
public:
[BrowsableAttribute(false)]
[ObsoleteAttribute(L"Use AFTransfer.SetSource(AFPort sourcePort).  There is no need to specify both a element and its port.")]
void SetSource(
	AFElement^ sourceElement, 
	AFPort^ sourcePort
)
[<BrowsableAttribute(false)>]
[<ObsoleteAttribute("Use AFTransfer.SetSource(AFPort sourcePort).  There is no need to specify both a element and its port.")>]
member SetSource : 
        sourceElement : AFElement * 
        sourcePort : AFPort -> unit 

Parameters

sourceElement
Type: OSIsoft.AF.AssetAFElement
The source element of the transfer.
sourcePort
Type: OSIsoft.AF.ModelingAFPort
The source port of the transfer.

Remarks

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

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
Related Links
TitleResults for “How to create a CRG?”Also Available in