AppContext.BaseDirectory AppContext.BaseDirectory AppContext.BaseDirectory AppContext.BaseDirectory Property

定义

获取程序集解析程序用于探测程序集的基目录的路径名。Gets the pathname of the base directory that the assembly resolver uses to probe for assemblies.

public:
 static property System::String ^ BaseDirectory { System::String ^ get(); };
public static string BaseDirectory { get; }
member this.BaseDirectory : string
Public Shared ReadOnly Property BaseDirectory As String

属性值

程序集解析程序用于探测程序集的基目录的路径名。the pathname of the base directory that the assembly resolver uses to probe for assemblies.

注解

这是每个应用程序域属性。This is a per application domain property. 它的值与当前AppDomain.BaseDirectory应用程序域的属性相对应。Its value corresponds to the AppDomain.BaseDirectory property of the current application domain.

适用于