Share via


PublishMessage Method

Publishes a message composed of a topic and content to all subscribers of the topic. The given publishing cookie is validated against the message topic.

Namespace:  Microsoft.VisualStudio.Data.Tools.Package.ModelBus
Assembly:  Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)

Syntax

'Declaration
Sub PublishMessage ( _
    publisherCookie As Nullable(Of UInteger), _
    message As ModelBusMessage _
)
'Usage
Dim instance As IModelBusService
Dim publisherCookie As Nullable(Of UInteger)
Dim message As ModelBusMessage

instance.PublishMessage(publisherCookie, _
    message)
void PublishMessage(
    Nullable<uint> publisherCookie,
    ModelBusMessage message
)
void PublishMessage(
    Nullable<unsigned int> publisherCookie, 
    ModelBusMessage^ message
)
abstract PublishMessage : 
        publisherCookie:Nullable<uint32> * 
        message:ModelBusMessage -> unit 
function PublishMessage(
    publisherCookie : Nullable<uint>, 
    message : ModelBusMessage
)

Parameters

  • publisherCookie
    Type: System..::..Nullable< (Of < ( <'UInt32> ) > ) >
    Publishing cookie, obtained when registering a publisher for this topic

See Also

Reference

IModelBusService Interface

Microsoft.VisualStudio.Data.Tools.Package.ModelBus Namespace