GetUnsafeResult Method
- Last UpdatedApr 08, 2026
- 1 minute read
Creates a new read-only PubSub message based on the current state of this PubSubMessageBuilder's underlying data buffer.
public PubSubMessage GetUnsafeResult()
public:
PubSubMessage^ GetUnsafeResult();
An unsafe version GetResult that returns a new PubSubMessage sharing the PubSubMessageBuilder's underlying data buffer. This method is useful when building and publishing multiple messages and there is no risk of the underlying message builder's state changing while the PubSubMessage is being processed.