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

AF SDK Reference

AFTransfer.IsValidDestination Method (AFPort, String)

AFTransfer.IsValidDestination Method (AFPort, String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTransfer.IsValidDestination Method (AFPort, String)
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: Boolean
Returns 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

ExceptionCondition
ArgumentNullException This exception is thrown when the destinationPort parameter is .

Version Information

AFSDK


See Also

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