VCFile Interface
The VCFile object describes the operations that can take place on a file in the active project.
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
| Name | Description | |
|---|---|---|
![]() | CustomTool | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only. |
![]() | DeploymentContent | Gets or sets a value indicating the deployment status of the selected file. DeploymentContent is used when a deployment project is part of the solution. |
![]() | Extension | Gets the extension of a file. |
![]() | FileConfigurations | The list of configurations on the selected file. |
![]() | FileType | Gets or sets the type of file. |
![]() | FullPath | Gets the full path of the project file. This property is read-only. |
![]() | ItemName | Gets the name of the current item in the collection. |
![]() | Items | Gets the collection of files and top-level folders in a project or the collection of files and folders in a folder. |
![]() | ItemType | Gets or sets the MSBuild item type. |
![]() | Kind | Gets an enumeration indicating the type of object. |
![]() | Name | Gets or sets the name of the object. |
![]() | Object | Provides a reference between the Visual Studio object model and the Visual C++ object model. |
![]() | Parent | Gets the immediate parent object. |
![]() | project | Gets the VCProject associated with the object. |
![]() | RelativePath | Gets or sets the relative path to the file. This path must be relative to the project directory and can contain macros. |
![]() | SubType | Gets or sets the file's subtype as understood by the designers. |
![]() | UnexpandedRelativePath | Gets the relative path before a macro expansion. |
![]() | VCProjectEngine | Gets a pointer to the project engine. |
| Name | Description | |
|---|---|---|
![]() | AddFile(String) | Adds a file to the current project or folder. |
![]() | CanAddFile(String) | Returns true if the specified file can be added to the current project or filter. |
![]() | CanMove(Object) | Returns true if a file can be moved to the specified location. |
![]() | MatchName(String, Boolean) | Matches a specified name to the name of a collection item. |
![]() | Move(Object) | Moves a file or folder into the top level of the project or a new folder. |
![]() | Remove() | Removes the specified project from the solution. |
![]() | RemoveFile(Object) | Removes a file from the current project or folder. |

