Show Table of Contents
22.4. .NET Binding for the C++ Messaging API Class: Connection
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(); |
See Also:

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.