Home Page (Objects) | Overview | FAQ | Reference
Applies to: Configuration object
Removes the settings of a specified file.
Syntax
object.RemoveFileSettings file, settings
Parameters
object
An expression that evaluates to a Configuration object.
file
A String that contains the name of the file whose settings you want to change.
settings
A String that includes the settings or command-line flags you want to remove from your project settings. You can remove multiple flags by separating them with spaces. For instance, you can specify "/MDd /W3" to remove the compiler flags "/MDd" and "/W3" from the makefile. If you try to remove a flag that does not exist in the makefile, Developer Studio will disregard that entry.
Remarks
The functionality of the RemoveFileSettings method appears on the tabs of the Project Settings dialog box (Project menu, Settings command).
Example
The following example removes the /WX switch from the precompiled header:
for each proj in Application.Projects
for each cfg in proj.Configurations
cfg.RemoveFileSettings "stdafx.cpp", "/WX"
next
next
See Also AddFileSettings method.