Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Configurations Property

Visual Studio .NET 2003

Returns the collection of configurations on the project.

[Visual Basic .NET]
Public ReadOnly Property Configurations() As Object
[Visual Basic 6]
Property Get Configurations() As Object
[C++]
HRESULT __stdcall get_Configurations(
   /* [out, retval] */ IDispatch** retVal
);
[C#]
public object Configurations {get;}
[JScript .NET]
public function get Configurations() : Object

Remarks

See AddConfiguration.

Example

The following sample code uses the Configurations property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim idx As Integer
        Dim prj As VCProject
        Dim mycollection As IVCCollection
        Dim cfg As VCConfiguration
        prj = DTE.Solution.Projects.Item(1).Object
        mycollection = prj.Configurations
        MsgBox(mycollection.Count)
        For idx = 1 To mycollection.Count
            cfg = mycollection.Item(idx)
            MsgBox(cfg.Name)
        Next
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Configurations Collection | Configuration Object

Applies To: VCProject Object

Show:
© 2015 Microsoft