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("66B46D9E-4EBC-41BD-AD18-B831C6249E80")>
Public Interface VCFile
	Inherits VCProjectItem

NameDescription
System_CAPS_pubpropertyCustomTool

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyDeploymentContent

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.

System_CAPS_pubpropertyExtension

Gets the extension of a file.

System_CAPS_pubpropertyFileConfigurations

The list of configurations on the selected file.

System_CAPS_pubpropertyFileType

Gets or sets the type of file.

System_CAPS_pubpropertyFullPath

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

System_CAPS_pubpropertyItemName

Gets the name of the current item in the collection.

System_CAPS_pubpropertyItems

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

System_CAPS_pubpropertyItemType

Gets or sets the MSBuild item type.

System_CAPS_pubpropertyKind

Gets an enumeration indicating the type of object.

System_CAPS_pubpropertyName

Gets or sets the name of the object.

System_CAPS_pubpropertyObject

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

System_CAPS_pubpropertyParent

Gets the immediate parent object.

System_CAPS_pubpropertyproject

Gets the VCProject associated with the object.

System_CAPS_pubpropertyRelativePath

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

System_CAPS_pubpropertySubType

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

System_CAPS_pubpropertyUnexpandedRelativePath

Gets the relative path before a macro expansion.

System_CAPS_pubpropertyVCProjectEngine

Gets a pointer to the project engine.

NameDescription
System_CAPS_pubmethodAddFile(String)

Adds a file to the current project or folder.

System_CAPS_pubmethodCanAddFile(String)

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

System_CAPS_pubmethodCanMove(Object)

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

System_CAPS_pubmethodMatchName(String, Boolean)

Matches a specified name to the name of a collection item.

System_CAPS_pubmethodMove(Object)

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

System_CAPS_pubmethodRemove()

Removes the specified project from the solution.

System_CAPS_pubmethodRemoveFile(Object)

Removes a file from the current project or folder.

Return to top
Show: