This documentation is archived and is not being maintained.

PrimaryOutput Property

Visual Studio .NET 2003

Specifies the primary output from building this configuration.

[Visual Basic .NET]
Public ReadOnly Property PrimaryOutput() As String
[Visual Basic 6]
Property Get PrimaryOutput() As String
HRESULT __stdcall get_PrimaryOutput(
   /* [out, retval] */ BSTR* retVal
public string PrimaryOutput {get;}
[JScript .NET]
public function get PrimaryOutput() : String


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

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

Public Module Module1
    Sub Test()
        Dim MyString As String
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        Dim MyDbg As VCDebugSettings
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        MyString = cfg.PrimaryOutput
    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