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

AF SDK Reference

AFPort.AllowedElementTemplate Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFPort.AllowedElementTemplate Property
This property is the AFElementTemplate of the elements that are allowed to connect to this port.

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: AFElementTemplate
The 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.

Version Information

AFSDK


See Also

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