Export (0) Print
Expand All

VCFile Interface

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)

[GuidAttribute("E04F9565-56E5-4DEF-BF0D-FE20B736C28B")]
public interface VCFile : VCProjectItem

The VCFile type exposes the following members.

  NameDescription
Public propertyCustomToolInfrastructure. Microsoft Internal Use Only.
Public propertyDeploymentContentGets 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 propertyExtensionGets the extension of a file.
Public propertyFileConfigurationsThe list of configurations on the selected file.
Public propertyFileTypeGets or sets the type of file.
Public propertyFullPathGets the full path of the project file. This property is read-only.
Public propertyItemNameGets the name of the current item in the collection.
Public propertyItemsGets the collection of files and top-level folders in a project or the collection of files and folders in a folder.
Public propertyItemTypeGets or sets the MSBuild item type.
Public propertyKindGets an enumeration indicating the type of object.
Public propertyNameGets or sets the name of the object.
Public propertyObjectProvides a reference between the Visual Studio object model and the Visual C++ object model.
Public propertyParentGets the immediate parent object.
Public propertyprojectGets the VCProject associated with the object.
Public propertyRelativePathGets or sets the relative path to the file. This path must be relative to the project directory and can contain macros.
Public propertySubTypeGets or sets the file's subtype as understood by the designers.
Public propertyUnexpandedRelativePathGets the relative path before a macro expansion.
Public propertyVCProjectEngineGets a pointer to the project engine.
Top

  NameDescription
Public methodAddFileAdds a file to the current project or folder.
Public methodCanAddFileReturns true if the specified file can be added to the current project or filter.
Public methodCanMoveReturns true if a file can be moved to the specified location.
Public methodMatchNameMatches a specified name to the name of a collection item.
Public methodMoveMoves a file or folder into the top level of the project or a new folder.
Public methodRemoveRemoves the specified project from the solution.
Public methodRemoveFileRemoves a file from the current project or folder.
Top
Show:
© 2014 Microsoft