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

SubSystem Property

Visual Studio .NET 2003

Specifies subsystem for the linker. Exposes the functionality of the /SUBSYSTEM linker option.

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


Use the subSystemOption enumeration to set the value of this property.


The following sample code modifies the SubSystem 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, tools As IVCCollection
    Dim cfg As VCConfiguration
    Dim tool As VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.SubSystem = subSystemOption.subSystemConsole
  End Sub
End Module

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

See Also

Applies To: VCLinkerTool Object

© 2015 Microsoft