Export (0) Print
Expand All
Expand Minimize

RegisterOutput Property

Visual Studio .NET 2003

Reports whether the configuration will register the primary output of this build.

See Linker Property Pages for more information.

[Visual Basic .NET]
Public ReadOnly Property RegisterOutput() As Boolean
[Visual Basic 6]
Property Get RegisterOutput() As Boolean
HRESULT __stdcall get_RegisterOutput(
   /* [out, retval] */ VARIANT_BOOL* retVal
public bool RegisterOutput {get;}
[JScript .NET]
public function get RegisterOutput() : Boolean


The VCConfiguration object's RegisterOutput property is another way, although read-only, to access the VCLinkerTool object's RegisterOutput property.


The following sample code uses the VCLinkerTool object's RegisterOutput 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.RegisterOutput = True
    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 | VCLinkerTool Object

© 2015 Microsoft