Export (0) Print
Expand All
Expand Minimize

ConfigurationType Property

Visual Studio .NET 2003

Specifies the type of output this configuration generates.

[Visual Basic .NET]
Public Property ConfigurationType() As ConfigurationTypes
[Visual Basic 6]
Property Get ConfigurationType() As ConfigurationTypes
Property Let ConfigurationType( _
   ByVal NewValue As ConfigurationTypes _
HRESULT __stdcall get_ConfigurationType(
   /* [out, retval] */ ConfigurationTypes* retVal
HRESULT __stdcall put_ConfigurationType(
   /* [in] */ ConfigurationTypes NewValue
public ConfigurationTypes ConfigurationType {get; set;}
[JScript .NET]
public function get ConfigurationType() : ConfigurationTypes
public function set ConfigurationType(
   NewValue : ConfigurationTypes


Use the ConfigurationTypes enumeration to change the value of this property.


The following sample code modifies the ConfigurationType property in the development environment:

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

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        cfg.ConfigurationType = ConfigurationTypes.typeStaticLibrary
    End Sub
End Module

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

See Also

Applies To: VCConfiguration Object

© 2014 Microsoft