共用方式為


ConsoleApplicationBase.InternalCommandLine 屬性

定義

設定用於當前應用程式命令列參數的值。

protected:
 property System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ InternalCommandLine {  void set(System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ value); };
protected System.Collections.ObjectModel.ReadOnlyCollection<string> InternalCommandLine { set; }
member this.InternalCommandLine : System.Collections.ObjectModel.ReadOnlyCollection<string>
Protected Property InternalCommandLine As ReadOnlyCollection(Of String)

屬性值

ReadOnlyCollection<T> A 的 String,包含用於當前應用程式命令列參數的字串。

備註

此方法允許你設定類別所使用的 ConsoleApplicationBase 命令列參數的內部值。 這個屬性決定了該 CommandLineArgs 屬性所回傳的是什麼。 如果你沒有設定這個屬性,或是將這個屬性設為 Nothing,該 CommandLineArgs 屬性會從該 CommandLine 屬性取得命令列參數。

適用於

另請參閱