Compartilhar via


VCPlatform.ExcludeDirectories Property

Definition

Gets or sets a path to exclude when searching for files while building a Visual C++ project.

public:
 property System::String ^ ExcludeDirectories { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ ExcludeDirectories { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(2511)]
public string ExcludeDirectories { [System.Runtime.InteropServices.DispId(2511)] get; [System.Runtime.InteropServices.DispId(2511)] set; }
[<System.Runtime.InteropServices.DispId(2511)>]
[<get: System.Runtime.InteropServices.DispId(2511)>]
[<set: System.Runtime.InteropServices.DispId(2511)>]
member this.ExcludeDirectories : string with get, set
Public Property ExcludeDirectories As String

Property Value

String containing a list of directories that are not to be searched.

Attributes

Examples

The following demonstration code excludes path C:\a and the inherited parent or project default path.

VCProject^ project=(VCProject^)m_dtTest->DTE->Solution->Item(1)->Object;  
IVCCollection^ plats = (IVCCollection^)project->Platforms;  
VCPlatform^ platform = (VCPlatform^)plats->Item(1);  
platform->ExcludeDirectories = "C:\a";$(ExcludePath)  

Remarks

By default in Visual C++ 2010, this property does not inherit from parent or project defaults. To inherit defaults when you set an exclude path, append the project $(ExcludePath) macro to the path.

Applies to