Freigeben über


InstallContext-Konstruktor ()

Initialisiert eine neue Instanz der InstallContext-Klasse.

Namespace: System.Configuration.Install
Assembly: System.Configuration.Install (in system.configuration.install.dll)

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New InstallContext
public InstallContext ()
public:
InstallContext ()
public InstallContext ()
public function InstallContext ()

Hinweise

Diese Überladung erstellt keine Protokolldatei für die Installation.

Beispiel

Hinweis

Dieses Beispiel veranschaulicht die Verwendung einer der überladenen Versionen des InstallContext-Konstruktors. Weitere evtl. verfügbare Beispiele finden Sie in den Themen zu den einzelnen Überladungen.

Wenn das Programm ohne Argumente aufgerufen wird, wird ein leerer InstallContext erstellt.

' There are no command line arguments, create an empty 'InstallContext'.
myInstallObject.myInstallContext = New InstallContext()
// There are no command line arguments, create an empty 'InstallContext'.
myInstallObject.myInstallContext = new InstallContext();
// There are no command line arguments, create an empty 'InstallContext'.
myInstallObject->myInstallContext = gcnew InstallContext;
// There are no command line arguments, create an empty
//'InstallContext'.
myInstallObject.myInstallContext = new InstallContext();

.NET Framework-Sicherheit

  • Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter .

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

InstallContext-Klasse
InstallContext-Member
System.Configuration.Install-Namespace