IVsPublishSubscribeService.Subscribe(Type, BulletinHandler) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a handler for the specified bulletin.
public:
void Subscribe(Type ^ bulletinType, Microsoft::VisualStudio::Shell::Services::BulletinHandler ^ handler);
public:
void Subscribe(Platform::Type ^ bulletinType, Microsoft::VisualStudio::Shell::Services::BulletinHandler ^ handler);
public void Subscribe (Type bulletinType, Microsoft.VisualStudio.Shell.Services.BulletinHandler handler);
abstract member Subscribe : Type * Microsoft.VisualStudio.Shell.Services.BulletinHandler -> unit
Public Sub Subscribe (bulletinType As Type, handler As BulletinHandler)
Parameters
- bulletinType
- Type
The type of the bulletin being subscribed to.
- handler
- BulletinHandler
The handler to be invoked when this bulletin is published.
Exceptions
bulletinType or bulletin are null.
Remarks
A will be thrown if bulletinType or handler are null.