The VCFile object describes the operations that can take place on a file in the active project.
Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
声明
<GuidAttribute("20324235-49B5-4426-8507-3626E4A31182")> _
Public Interface VCFile _
    Inherits VCProjectItem
[GuidAttribute("20324235-49B5-4426-8507-3626E4A31182")]
public interface VCFile : VCProjectItem
[GuidAttribute(L"20324235-49B5-4426-8507-3626E4A31182")]
public interface class VCFile : VCProjectItem
[<GuidAttribute("20324235-49B5-4426-8507-3626E4A31182")>]
type VCFile =  
    interface
        interface VCProjectItem
    end
public interface VCFile extends VCProjectItem
The VCFile type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | CustomTool | Infrastructure. Microsoft Internal Use Only. | 
| .gif) | 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. | 
| .gif) | Extension | Gets the extension of a file. | 
| .gif) | FileConfigurations | The list of configurations on the selected file. | 
| .gif) | FileType | Gets or sets the type of file. | 
| .gif) | FullPath | Gets the full path of the project file. This property is read-only. | 
| .gif) | ItemName | Gets the name of the current item in the collection. | 
| .gif) | ItemName | Gets the name of the current item in the collection. (Inherited from VCProjectItem.) | 
| .gif) | Items | Gets the collection of files and top-level folders in a project or the collection of files and folders in a folder. | 
| .gif) | ItemType | Gets or sets the MSBuild item type. | 
| .gif) | Kind | Gets an enumeration indicating the type of object. | 
| .gif) | Kind | Gets an enumeration indicating the type of object. (Inherited from VCProjectItem.) | 
| .gif) | Name | Gets or sets the name of the object. | 
| .gif) | Object | Provides a reference between the Visual Studio object model and the Visual C++ object model. | 
| .gif) | Parent | Gets the immediate parent object. | 
| .gif) | Parent | Gets the immediate parent object of a given object. (Inherited from VCProjectItem.) | 
| .gif) | project | Gets the VCProject associated with the object. | 
| .gif) | project | Gets the VCProject associated with the object. (Inherited from VCProjectItem.) | 
| .gif) | RelativePath | Gets or sets the relative path to the file. This path must be relative to the project directory and can contain macros. | 
| .gif) | SubType | Gets or sets the file's subtype as understood by the designers. | 
| .gif) | UnexpandedRelativePath | Gets the relative path before a macro expansion. | 
| .gif) | VCProjectEngine | Gets a pointer to the project engine. | 
| .gif) | VCProjectEngine | Gets a pointer to the project engine. (Inherited from VCProjectItem.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddFile | Adds a file to the current project or folder. | 
| .gif) | CanAddFile | Returns true if the specified file can be added to the current project or filter. | 
| .gif) | CanMove | Returns true if a file can be moved to the specified location. | 
| .gif) | MatchName(String, Boolean) | Matches a specified name to the name of a collection item. | 
| .gif) | MatchName(String, Boolean) | Matches a specified name to the name of a collection item. (Inherited from VCProjectItem.) | 
| .gif) | Move | Moves a file or folder into the top level of the project or a new folder. | 
| .gif) | Remove | Removes the specified project from the solution. | 
| .gif) | RemoveFile | Removes a file from the current project or folder. | 
Top