AFBaseElement.DefaultUndirectedPort Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The default undirected AFPort for the AFBaseElement.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFPort DefaultUndirectedPort { get; set; }
Public Property DefaultUndirectedPort As AFPort Get Set Dim instance As AFBaseElement Dim value As AFPort value = instance.DefaultUndirectedPort instance.DefaultUndirectedPort = value
public: property AFPort^ DefaultUndirectedPort { AFPort^ get (); void set (AFPort^ value); }
member DefaultUndirectedPort : AFPort with get, set
Property Value
Type: AFPortReturns the default undirected AFPort for the AFBaseElement. If the default port does not exist or has not been set, then will be returned.
Remarks
If this element was created from an AFElementTemplate, then the value of
this property is defined by the template's DefaultUndirectedPort.
Use this property when attempting to get the default undirected port when
making connections between AFBaseElement objects.