AFPort.AllowedElementTemplate Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Namespace: OSIsoft.AF.Modeling
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFElementTemplate AllowedElementTemplate { get; set; }
Public Property AllowedElementTemplate As AFElementTemplate Get Set Dim instance As AFPort Dim value As AFElementTemplate value = instance.AllowedElementTemplate instance.AllowedElementTemplate = value
public: property AFElementTemplate^ AllowedElementTemplate { AFElementTemplate^ get (); void set (AFElementTemplate^ value); }
member AllowedElementTemplate : AFElementTemplate with get, set
Property Value
Type: AFElementTemplateThe AFElementTemplate of the elements that are allowed to connect to this port. If the value of this property is , then there is no restriction based upon element template type.
Remarks
If this property is not set to , then only elements that are created from the specified element template or a template derived from the specified element template are allowed to be connected to this port.
The allowed element template for the port cannot be changed if the port is being used as a connection in a model. To change the value of this property, all connections to this port must first be deleted.
When the port is used to connect a transfer's Source or Destination, this property is only used when setting these properties. If this property is changed, it will not invalidate the Source or Destination of any existing transfers.