Export (0) Print
Expand All
Expand Minimize

ProgramDatabase Property

Visual Studio .NET 2003

Reports the program database, if any, that the configuration generates.

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

Remarks

To modify this property, you will need to modify the appropriate setting on the tool generating the final output. This is typically the linker or librarian tool.

Example

The following sample code modifies the ProgramDatabase 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.ProgramDatabase
    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:
© 2014 Microsoft