ConfigurationType Property
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

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 _
) 
[C++]
HRESULT __stdcall get_ConfigurationType(
   /* [out, retval] */ ConfigurationTypes* retVal
);
HRESULT __stdcall put_ConfigurationType(
   /* [in] */ ConfigurationTypes NewValue
);
[C#]
public ConfigurationTypes ConfigurationType {get; set;}
[JScript .NET]
public function get ConfigurationType() : ConfigurationTypes
public function set ConfigurationType(
   NewValue : ConfigurationTypes
)

Remarks

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

Example

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

Show:
© 2016 Microsoft