The NMS Class Library (.Net Messaging Library)

IConnectionFactory.CreateConnection Method (String, String)

Creates a new connection with the given user name and password

IConnection CreateConnection(
   string userName,
   string password
);

See Also

IConnectionFactory Interface | NMS Namespace | IConnectionFactory.CreateConnection Overload List