Freigeben über


ImportsEventsClass.ImportAdded Event

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Occurs immediately after an Imports statement has been added to a Visual Basic project.

Namespace:  VSLangProj
Assembly:  VSLangProj (in VSLangProj.dll)

Syntax

'Declaration
Public Overridable Event ImportAdded As _dispImportsEvents_ImportAddedEventHandler
public virtual event _dispImportsEvents_ImportAddedEventHandler ImportAdded
public:
virtual   event _dispImportsEvents_ImportAddedEventHandler^ ImportAdded {
    void add (_dispImportsEvents_ImportAddedEventHandler^ value);
    void remove (_dispImportsEvents_ImportAddedEventHandler^ value);
}
abstract ImportAdded : IEvent<_dispImportsEvents_ImportAddedEventHandler,
    EventArgs>
override ImportAdded : IEvent<_dispImportsEvents_ImportAddedEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispImportsEvents_Event.ImportAdded

Remarks

This event is not raised if the Imports statement already exists in the project. Instead, the Add method will raise an error.

.NET Framework Security

See Also

Reference

ImportsEventsClass Class

VSLangProj Namespace