Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft die Befehlszeile ab, die beim Erstellen eines neuen InstallContext-Objekts für die Installation der Assembly verwendet werden soll, oder legt diese fest.
Namespace: System.Configuration.Install
Assembly: System.Configuration.Install (in system.configuration.install.dll)
Syntax
'Declaration
Public Property CommandLine As String()
'Usage
Dim instance As AssemblyInstaller
Dim value As String()
value = instance.CommandLine
instance.CommandLine = value
public string[] CommandLine { get; set; }
public:
property array<String^>^ CommandLine {
array<String^>^ get ();
void set (array<String^>^ value);
}
/** @property */
public String[] get_CommandLine ()
/** @property */
public void set_CommandLine (String[] value)
public function get CommandLine () : String[]
public function set CommandLine (value : String[])
Eigenschaftenwert
Ein Array vom Typ String, das die Befehlszeile darstellt, die beim Erstellen eines neuen InstallContext-Objekts für die Installation der Assembly verwendet werden soll.
Beispiel
Im folgenden Beispiel wird die CommandLine-Eigenschaft eines AssemblyInstaller auf den Protokolldateinamen festgelegt.
' Set the logfile name in the commandline argument array.
Dim commandLineOptions(0) As String
commandLineOptions(0) = "/LogFile=example.log"
myAssemblyInstaller.CommandLine = commandLineOptions
// Set the logfile name in the commandline argument array.
string[] commandLineOptions = new string[ 1 ] {"/LogFile=example.log"};
myAssemblyInstaller.CommandLine = commandLineOptions;
// Set the logfile name in the commandline argument array.
array<String^>^commandLineOptions = {"/LogFile=example.log"};
myAssemblyInstaller->CommandLine = commandLineOptions;
// Set the logfile name in the commandline argument array.
String commandLineOptions[] = new String[]{"/LogFile=example.log"};
myAssemblyInstaller.set_CommandLine(commandLineOptions);
.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
AssemblyInstaller-Klasse
AssemblyInstaller-Member
System.Configuration.Install-Namespace
InstallContext