StartupEventArgs.CommandLine 屬性

定義

取得應用程式的命令列引數。

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ CommandLine { System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<string> CommandLine { get; }
member this.CommandLine : System.Collections.ObjectModel.ReadOnlyCollection<string>
Public ReadOnly Property CommandLine As ReadOnlyCollection(Of String)

屬性值

ReadOnlyCollection<T> 物件,包含應用程式的命令列引數。

備註

如果應用程式實作 Visual Basic 應用程式模型,就會 Startup 在應用程式啟動時發生此事件。 如需詳細資訊,請參閱 Visual Basic應用程式模型概觀

適用於

另請參閱