ToolTask.GetWorkingDirectory 方法

定义

获取要用于进程的工作目录。Gets the working directory to use for the process. 如果 ToolTask 应使用当前目录,则返回 null。Should return null if ToolTask should use the current directory.

protected:
 virtual System::String ^ GetWorkingDirectory();
protected virtual string GetWorkingDirectory ();
abstract member GetWorkingDirectory : unit -> string
override this.GetWorkingDirectory : unit -> string
Protected Overridable Function GetWorkingDirectory () As String

返回

String

注解

这是一个方法,而不是一个属性,因此,派生类 (例如 Exec) 可以选择公开一个公共 WorkingDirectory 属性,这会使具有两个属性变得混乱。This is a method rather than a property so that derived classes (like Exec) can choose to expose a public WorkingDirectory property, and it would be confusing to have two properties.

适用于