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: