22.7. .NET Binding for the C++ Messaging API Class: Message

Table 22.7. .NET Binding for the C++ Messaging API Class: Message

.NET Binding Class: Message
Language Syntax
C++ class Message
.NET public ref class Message
Constructor
C++ Message(const std::string& bytes = std::string());
.NET Message();
.NET Message(System::String ^ theStr);
.NET Message(System::Object ^ theValue);
.NET Message(array<System::Byte> ^ bytes);
Constructor
C++ Message(const char*, size_t);
.NET public Message(byte[] bytes, int offset, int size);
Copy Constructor
C++ Message(const Message&);
.NET public Message(Message message);
Copy assignment operator
C++ Message& operator=(const Message&);
.NET public Message op_Assign(Message rhs);
Destructor
C++ ~Message();
.NET ~Message();
Finalizer
C++ not applicable
.NET !Message()
Property: ReplyTo
C++ void setReplyTo(const Address&);
C++ const Address& getReplyTo() const;
.NET public Address ReplyTo { get; set; }
Property: Subject
C++ void setSubject(const std::string&);
C++ const std::string& getSubject() const;
.NET public string Subject { get; set; }
Property: ContentType
C++ void setContentType(const std::string&);
C++ const std::string& getContentType() const;
.NET public string ContentType { get; set; }
Property: MessageId
C++ void setMessageId(const std::string&);
C++ const std::string& getMessageId() const;
.NET public string MessageId { get; set; }
Property: UserId
C++ void setUserId(const std::string&);
C++ const std::string& getUserId() const;
.NET public string UserId { get; set; }
Property: CorrelationId
C++ void setCorrelationId(const std::string&);
C++ const std::string& getCorrelationId() const;
.NET public string CorrelationId { get; set; }
Property: Priority
C++ void setPriority(uint8_t);
C++ uint8_t getPriority() const;
.NET public byte Priority { get; set; }
Property: Ttl
C++ void setTtl(Duration ttl);
C++ Duration getTtl() const;
.NET public Duration Ttl { get; set; }
Property: Durable
C++ void setDurable(bool durable);
C++ bool getDurable() const;
.NET public bool Durable { get; set; }
Property: Redelivered
C++ bool getRedelivered() const;
C++ void setRedelivered(bool);
.NET public bool Redelivered { get; set; }
Method: SetProperty
C++ void setProperty(const std::string&, const qpid::types::Variant&);
.NET public void SetProperty(string name, object value);
Property: Properties
C++ const qpid::types::Variant::Map& getProperties() const;
C++ qpid::types::Variant::Map& getProperties();
.NET public Dictionary<string, object> Properties { get; set; }
Method: SetContent
C++ void setContent(const std::string&);
C++ void setContent(const char* chars, size_t count);
.NET public void SetContent(byte[] bytes);
.NET public void SetContent(string content);
.NET public void SetContent(byte[] bytes, int offset, int size);
Method: GetContent
C++ std::string getContent() const;
.NET public string GetContent();
.NET public void GetContent(byte[] arr);
.NET public void GetContent(Collection<object> __p1);
.NET public void GetContent(Dictionary<string, object> dict);
Method: GetContentPtr
C++ const char* getContentPtr() const;
.NET not applicable
Property: ContentSize
C++ size_t getContentSize() const;
.NET public ulong ContentSize { get; }
Struct: EncodingException
C++ struct EncodingException : qpid::types::Exception
.NET not applicable
Method: decode
C++ void decode(const Message& message, qpid::types::Variant::Map& map, const std::string& encoding = std::string());
C++ void decode(const Message& message, qpid::types::Variant::List& list, const std::string& encoding = std::string());
.NET not applicable
Method: encode
C++ void encode(const qpid::types::Variant::Map& map, Message& message, const std::string& encoding = std::string());
C++ void encode(const qpid::types::Variant::List& list, Message& message, const std::string& encoding = std::string());
.NET not applicable
Method: AsString
C++ not applicable
.NET public string AsString(object obj);
.NET public string ListAsString(Collection<object> list);
.NET public string MapAsString(Dictionary<string, object> dict);