RegisterPublisher Method
Registers a publisher and provides a publishing cookie. This will also publish a message.
Namespace: Microsoft.VisualStudio.Data.Tools.Package.ModelBus
Assembly: Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)
Syntax
'Declaration
Public Sub RegisterPublisher ( _
publisher As IModelBusPublisher, _
publisherTopic As ModelBusMessageTopic, _
<OutAttribute> ByRef publishingCookie As Nullable(Of UInteger) _
)
'Usage
Dim instance As ModelBusService
Dim publisher As IModelBusPublisher
Dim publisherTopic As ModelBusMessageTopic
Dim publishingCookie As Nullable(Of UInteger)
instance.RegisterPublisher(publisher, _
publisherTopic, publishingCookie)
public void RegisterPublisher(
IModelBusPublisher publisher,
ModelBusMessageTopic publisherTopic,
out Nullable<uint> publishingCookie
)
public:
virtual void RegisterPublisher(
IModelBusPublisher^ publisher,
ModelBusMessageTopic^ publisherTopic,
[OutAttribute] Nullable<unsigned int>% publishingCookie
) sealed
abstract RegisterPublisher :
publisher:IModelBusPublisher *
publisherTopic:ModelBusMessageTopic *
publishingCookie:Nullable<uint32> byref -> unit
override RegisterPublisher :
publisher:IModelBusPublisher *
publisherTopic:ModelBusMessageTopic *
publishingCookie:Nullable<uint32> byref -> unit
public final function RegisterPublisher(
publisher : IModelBusPublisher,
publisherTopic : ModelBusMessageTopic,
publishingCookie : Nullable<uint>
)
Parameters
- publisherTopic
Type: Microsoft.VisualStudio.Data.Tools.Package.ModelBus..::..ModelBusMessageTopic
- publishingCookie
Type: System..::..Nullable< (Of < ( <'UInt32> ) > ) >%
A publishing cookie that is returned for use bay callers to publish messages without references to the IModelBusPublisher
Implements
See Also
Reference
Microsoft.VisualStudio.Data.Tools.Package.ModelBus Namespace