IVCCollection::Item Method (Object^)

 

Selects an item in the collection.

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

Object^ Item(
	Object^ Index
)

Parameters

Index
Type: System::Object^

An object representing the index of the item in the collection.

Return Value

Type: System::Object^

An item in the collection.

You can provide either a 1-based number that is an index to an item in the collection, or you can provide a quoted string representing the name of an item in the collection.

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).

No code example is currently available or this language may not be supported.
Return to top
Show: