Share via


IVsaSite.Notify Method

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

public: void Notify( 
   String*  Notify,
   Object*  Info
);
public void Notify( 
   string  Notify,
   object  Info
);
MustOverride Public Sub Notify( _ 
   ByVal  Notify As String _
   ByVal  Info As Object
)

Parameters

  • notify
    A string identifying the notification.

  • info
    An object containing additional information about the notification.

Remarks

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.

See Also

Reference

IVsaSite Interface