PubSubMessageBuilder Constructor(String,PubSubHeaderData,Int32,Boolean)
- Last UpdatedApr 08, 2026
- 1 minute read
Initializes a new instance of PubSubMessageBuilder class with the specified parameters.
public PubSubMessageBuilder(
string topic,
PubSubHeaderData headerData,
int capacity,
bool publiclyVisible
)
public:
PubSubMessageBuilder(
String^ topic,
PubSubHeaderData headerData,
int capacity,
bool publiclyVisible
)
Parameters
- topic
- The PubSub topic associated with this message builder.
- headerData
- The PubSub header data associated with this message builder.
- capacity
- The initial capacity for the underlying PubSub message buffer.
- publiclyVisible
- Indicates whether GetBuffer can be called to expose the underlying memory buffer.