Export (0) Print
Expand All
Expand Minimize

QueryAddFile Event

Visual Studio .NET 2003

Occurs just before a file is added to a project.

PROCEDURE Object.QueryAddFile
LPARAMETERS cFileName

Parameters

cFileName
Contains the name of the file to add to the project. cFileName is passed to the QueryAddFile event after the Add method is executed, you choose Add in the Project Manager, or you choose Add File from the Project menu.

Remarks

Include NODEFAULT in the QueryAddFile event to prevent a file from being added to the project.

See Also

Add Method | QueryModifyFile Event | QueryRemoveFile Event | QueryRunFile Event | QueryNewFile Event

Applies To: ProjectHook Object

Show:
© 2014 Microsoft