PubSubMessage Constructor
- Last UpdatedApr 08, 2026
- 1 minute read
Initializes a new instance of PubSubMessage class with the specified parameters.
public PubSubMessage(
string topic,
PubSubHeaderData headerData,
byte[] data
)
public:
PubSubMessage(
String^ topic,
PubSubHeaderData headerData,
array<byte>^ data
)
Parameters
- topic
- The PubSub topic associated with this message.
- headerData
- The PubSub header data associated with this message.
- data
- The raw PubSub message data associated with this message.
| Exception | Description |
|---|---|
| System.ArgumentException | The buffer preamble is not valid. |