IVsPublishSubscribeService.Subscribe(Type, BulletinHandler) Method

Definition

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.

Applies to