VCFile Members

Include Protected Members
Include Inherited Members

The VCFile object describes the operations that can take place on a file in the active project.

The VCFile type exposes the following members.

Methods

 

Name

Description

Public method

AddFile

Adds a file to the current project or folder.

Public method

CanAddFile

Returns true if the specified file can be added to the current project or filter.

Public method

CanMove

Returns true if a file can be moved to the specified location.

Public method

MatchName

Overloaded.

Public method

Move

Moves a file or folder into the top level of the project or a new folder.

Public method

Remove

Removes the specified project from the solution.

Public method

RemoveFile

Removes a file from the current project or folder.

Top

Properties

 

Name

Description

Public property

CustomTool

Infrastructure. Microsoft Internal Use Only.

Public property

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.

Public property

Extension

Gets the extension of a file.

Public property

FileConfigurations

The list of configurations on the selected file.

Public property

FileType

Gets or sets the type of file.

Public property

FullPath

Gets the full path of the project file. This property is read-only.

Public property

ItemName

Overloaded.

Public property

Items

Gets the collection of files and top-level folders in a project or the collection of files and folders in a folder.

Public property

Kind

Overloaded.

Public property

Name

Gets or sets the name of the object.

Public property

Object

Provides a reference between the Visual Studio object model and the Visual C++ object model.

Public property

Parent

Overloaded.

Public property

project

Overloaded.

Public property

RelativePath

Gets or sets the relative path to the file. This path must be relative to the project directory and can contain macros.

Public property

SubType

Gets or sets the file's subtype as understood by the designers.

Public property

UnexpandedRelativePath

Gets the relative path before a macro expansion.

Public property

VCProjectEngine

Overloaded.

Top

See Also

Reference

VCFile Interface

Microsoft.VisualStudio.VCProjectEngine Namespace