OpenConnection(String,String,Int16,String,String,String) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Deprecated: Connects to the specified PubSub engine.
[Obsolete("Replace usages with --> PubSubConnectionFactory.OpenConnection(~) <-- [DECEMBER 2018]")]
public void OpenConnection(
string AppName,
string IPName,
short port,
string Domain,
string User,
string Password
)
[Obsolete("Replace usages with --> PubSubConnectionFactory.OpenConnection(~) <-- [DECEMBER 2018]")]
public:
void OpenConnection(
String^ AppName,
String^ IPName,
short port,
String^ Domain,
String^ User,
String^ Password
)
Parameters
- AppName
- The identifier for this connection. If blank, the value appnameGlobal plus the connection number will be used.
- IPName
- The IP address or computer name to connect to.
- port
- The port number to use (0 is the default).
- Domain
- The security domain for the logon.
- User
- The user name for the logon.
- Password
- The password for the user login.
This method has been deprecated. Use PubSubConnectionFactory.OpenConnection.
The connection state is independent of subscriptions, persistence store registration, and secured topics. However, to ensure proper behavior, subscriptions, persistence store registrations, and secured topic calls are replayed when a connection is opened. This behavior allows subscriptions and other such calls to be made against a connection once it is initialized but before it is opened.
PubSubConnection PS = new PubSubConnection();
PS.OpenConnection("myApp", "192.168.10.10", 5051, "myDomain", "myName", "myPassword");
PubSubConnection PS = new PubSubConnection();
PS.OpenConnection("myApp", "192.168.10.10", 5051, "myDomain", "myName", "myPassword");