次の方法で共有


VCConfiguration.AddPropertySheet(String) Method

Definition

Adds a property sheet to the collection of property sheets directly imported by a configuration.

public:
 Microsoft::VisualStudio::VCProjectEngine::VCPropertySheet ^ AddPropertySheet(System::String ^ FileName);
public:
 Microsoft::VisualStudio::VCProjectEngine::VCPropertySheet ^ AddPropertySheet(Platform::String ^ FileName);
Microsoft::VisualStudio::VCProjectEngine::VCPropertySheet AddPropertySheet(std::wstring const & FileName);
[System.Runtime.InteropServices.DispId(782)]
public Microsoft.VisualStudio.VCProjectEngine.VCPropertySheet AddPropertySheet (string FileName);
[<System.Runtime.InteropServices.DispId(782)>]
abstract member AddPropertySheet : string -> Microsoft.VisualStudio.VCProjectEngine.VCPropertySheet
Public Function AddPropertySheet (FileName As String) As VCPropertySheet

Parameters

FileName
String

Relative to the importing property sheet, the full path or relative path of the property sheet to add. The path can contain build system macros.

Returns

The VCPropertySheet object that corresponds the property sheet that is added.

Attributes

Remarks

The new property sheet is added last in the evaluation order of the property sheets.

For example, if you want the debug configuration of project file C:\proj1.vcxproj to import the property sheet C:\folder1\folder2\Q.props, call this method on the debug configuration object. For the FileName parameter, specify either "C:\folder1\folder2\Q.props" or "folder1\folder2\Q.props". In the latter case, the relative path of Q is with regard to the project directory.

Applies to