Export (0) Print
Expand All

ConfigurationManager.Item Method

Returns a Configuration object of a ConfigurationManager collection.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

Configuration Item (
	[InAttribute] Object index,
	[OptionalAttribute] string Platform
)
Configuration Item (
	/** @attribute InAttribute() */ Object index, 
	/** @attribute OptionalAttribute() */ String Platform
)
function Item (
	index : Object, 
	Platform : String
) : Configuration

Parameters

index
Platform

Optional. The name of the platform.

Return Value

A Configuration object.

Item returns the configuration at Index. This object is in row-major order with project/project item configuration names forming rows, and platform names forming columns.

If index is a Long data type, then it is a row-major index into the matrix, and the Platform argument is ignored. If index is a String data type, then it is a project/project item configuration name and Platform must be supplied as the platform name. For projects that do not support any platforms, this argument can be an empty string.

Sub ItemExample()
   ' Before running, load a project.
   ' Set references to all necessary objects.
   Dim CM As ConfigurationManager = DTE.Solution.Projects.Item(1).ConfigurationManager
   ' List the configuration name used for the current project.
   MsgBox(CM.Item(2).ConfigurationName)
End Sub

Community Additions

ADD
Show:
© 2014 Microsoft