AFConnectionProtocol Enumeration
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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.1.1.1182
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.