SolutionConfiguration-Schnittstelle

Stellt die Informationen über eine bestimmte Methode zum Erstellen einer Projektmappe dar.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
<GuidAttribute("60AAAD75-CB8D-4C62-9959-24D6A6A50DE7")> _
Public Interface SolutionConfiguration
[GuidAttribute("60AAAD75-CB8D-4C62-9959-24D6A6A50DE7")]
public interface SolutionConfiguration
[GuidAttribute(L"60AAAD75-CB8D-4C62-9959-24D6A6A50DE7")]
public interface class SolutionConfiguration
[<GuidAttribute("60AAAD75-CB8D-4C62-9959-24D6A6A50DE7")>]
type SolutionConfiguration =  interface end
public interface SolutionConfiguration

Der SolutionConfiguration-Typ macht die folgenden Member verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Collection Ruft die SolutionConfigurations-Auflistung mit dem SolutionConfiguration-Objekt ab, das diese Eigenschaft unterstützt.
Öffentliche Eigenschaft DTE Ruft das Erweiterbarkeitsobjekt der obersten Ebene ab.
Öffentliche Eigenschaft Name Ruft den Namen des Objekts ab oder legt ihn fest.
Öffentliche Eigenschaft SolutionContexts Ruft eine Auflistung von SolutionContext-Objekten ab.

Zum Seitenanfang

Methoden

  Name Beschreibung
Öffentliche Methode Activate Verschiebt den Fokus auf das aktuelle Element.
Öffentliche Methode Delete Entfernt das SolutionConfiguration-Objekt aus der Auflistung.

Zum Seitenanfang

Hinweise

Darüber hinaus gibt SolutionConfiguration für jedes Projekt die Projektkonfiguration und -plattform an, die den Kontext für den Buildvorgang und die Entwurfszeitfeatures in der Umgebung bereitstellen, z. B. die Anweisungsvervollständigung im Editor.

Beispiele

Sub SolutionConfigurationExample()
  ' Ensure all Debug project configurations are what are built for the
  ' Debug solution configuration.
  Dim config As SolutionConfiguration = DTE.Solution.SolutionBuild.SolutionConfigurations.Item("Debug")
  For each context in config.SolutionContexts
    Context.ConfigurationName = "Debug"
  Next
End Sub

Siehe auch

Referenz

EnvDTE-Namespace