22.4. .NET Binding for the C++ Messaging API Class: Connection


Expand
Table 22.4. .NET Binding for the C++ Messaging API Class: Connection
.NET Binding Class: Connection
Language Syntax
C++ class Connection : public qpid::messaging::Handle<ConnectionImpl>
.NET public ref class Connection
Constructor
C++ Connection(ConnectionImpl* impl);
.NET not applicable
Constructor
C++ Connection();
.NET not applicable
Constructor
C++ Connection(const std::string& url, const qpid::types::Variant::Map& options = qpid::types::Variant::Map());
.NET public Connection(string url);
.NET public Connection(string url, Dictionary<string, object> options);
Constructor
C++ Connection(const std::string& url, const std::string& options);
.NET public Connection(string url, string options);
Copy Constructor
C++ Connection(const Connection&);
.NET public Connection(Connection connection);
Destructor
C++ ~Connection();
.NET ~Connection();
Finalizer
C++ not applicable
.NET !Connection();
Copy assignment operator
C++ Connection& operator=(const Connection&);
.NET public Connection op_Assign(Connection rhs);
Method: SetOption
C++ void setOption(const std::string& name, const qpid::types::Variant& value);
.NET public void SetOption(string name, object value);
Method: open
C++ void open();
.NET public void Open();
Property: isOpen
C++ bool isOpen();
.NET public bool IsOpen { get; }
Method: close
C++ void close();
.NET public void Close();
Method: createTransactionalSession
C++ Session createTransactionalSession(const std::string& name = std::string());
.NET public Session CreateTransactionalSession();
.NET public Session CreateTransactionalSession(string name);
Method: createSession
C++ Session createSession(const std::string& name = std::string());
.NET public Session CreateSession();
.NET public Session CreateSession(string name);
Method: getSession
C++ Session getSession(const std::string& name) const;
.NET public Session GetSession(string name);
Property: AuthenticatedUsername
C++ std::string getAuthenticatedUsername();
.NET public string GetAuthenticatedUsername();
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat