This documentation is archived and is not being maintained.

IVsaSite.Notify Method

Notifies the host about events generated by the .NET script engine.

[Visual Basic]
Sub Notify( _
   ByVal notify As String, _
   ByVal info As Object _
void Notify(
   string notify,
 object info
void Notify(
   String* notify,
 Object* info
function Notify(
   notify : String,
 info : Object


A string identifying the notification.
An object containing additional information about the notification.


The host should ignore notification for which it has no response, rather than throwing an error. For notifications to which the host should respond, but for which the info parameter is not correct, or which has arrived at an unexpected time, the host should throw a NotificationNotValid or CallbackUnexpected exception, as appropriate.

Notifications can vary from engine to engine, so it is important to refer to documentation for the script engine language that you implement.

The following table shows the exceptions that the Notify method can throw.

Exception Type Condition
NotificationNotValid A notification contains unclear or ambiguous information, or arrives at an unexpected time.
CallbackUnexpected The host was not expecting a callback at this time.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IVsaSite Interface | IVsaSite Members | Microsoft.Vsa Namespace