Export (0) Print
Expand All

IVCCollection Interface

An IVCCollection object contains the functionality that can be exercised on a collections object.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

[<GuidAttribute("BA03D89E-872B-4E4F-A186-61BA51119AC0")>]
type IVCCollection =  
    interface 
        interface IEnumerable 
    end

The IVCCollection type exposes the following members.

  NameDescription
Public propertyCountGets a value indicating the number of objects in the collection.
Public propertyVCProjectEngineGets an object pointer to the project engine.
Top

  NameDescription
Public methodGetEnumeratorReturns an enumerator for items in the collection.
Public methodItemSelects an item in the collection.
Top

For example, the Files property of a VCFilter object is a collection of the files in a folder.

The following example demonstrates how to use the EnablePREfast and AdditionalOptions properties to set the /analyze:WX- switch. (Both properties are required to do this.) Specifying /analyze:WX- means that code analysis warnings will not be treated as errors when compiling with /WX. For more information, see /analyze (Code Analysis).

To run this example, enter and run this example as outlined in How to: Compile and Run the Automation Object Model Code Examples. Then, in the new instance of Visual Studio, load a Visual C++ project and use the Add-in Manager to activate the add-in.

No code example is currently available or this language may not be supported.
Show:
© 2014 Microsoft