AFConnectionProtocol Enumeration
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Defines the connection protocol used to communicate with the PI AF Server.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public enum AFConnectionProtocol
Public Enumeration AFConnectionProtocol Dim instance As AFConnectionProtocol
public enum class AFConnectionProtocol
type AFConnectionProtocol
Members
| Member name | Value | Description | |
|---|---|---|---|
| Tcp | 0 | A secure, reliable binding suitable for cross-machine communication using TCP for message delivery and a binary message encoding. | |
| NamedPipe | 1 | A secure, reliable binding suitable for communication on the same machine using a named pipe for message delivery and a binary message encoding. This protocol has better throughput than Tcp when the client and server are on the same machine. |
Remarks
The connection protocol is used when defining the
AFConnectionInfo.Protocol property.