AFTransfer.IsValidDestination Method (AFPort, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method checks if the specified port is valid as the destination of this transfer.
Namespace: OSIsoft.AF.EventFrame
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool IsValidDestination( AFPort destinationPort, out string errMsg )
Public Function IsValidDestination ( destinationPort As AFPort, <OutAttribute> ByRef errMsg As String ) As Boolean Dim instance As AFTransfer Dim destinationPort As AFPort Dim errMsg As String Dim returnValue As Boolean returnValue = instance.IsValidDestination(destinationPort, errMsg)
public: bool IsValidDestination( AFPort^ destinationPort, [OutAttribute] String^% errMsg )
member IsValidDestination : destinationPort : AFPort * errMsg : string byref -> bool
Parameters
- destinationPort
- Type: OSIsoft.AF.ModelingAFPort
The destination AFPort object of the transfer. The port type must be Input. - errMsg
- Type: SystemString
The returned error message if the specified port is invalid as the destination of this transfer.
Return Value
Type: BooleanReturns if the specified is valid as a destination for this transfer. If it is invalid, returns and the errMsg parameter specifies the error message.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | This exception is thrown when the destinationPort parameter is . |