AppDomain.AppendPrivatePath(String) 方法

定義

警告

AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. https://go.microsoft.com/fwlink/?linkid=14202

警告

AppDomain.AppendPrivatePath has been deprecated and is not supported.

警告

AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. http://go.microsoft.com/fwlink/?linkid=14202

警告

AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead.

將指定的目錄名稱附加至私用 (Private) 路徑清單。

public:
 void AppendPrivatePath(System::String ^ path);
public:
 virtual void AppendPrivatePath(System::String ^ path);
[System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void AppendPrivatePath (string? path);
[System.Obsolete("AppDomain.AppendPrivatePath has been deprecated and is not supported.")]
public void AppendPrivatePath (string? path);
[System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void AppendPrivatePath (string path);
public void AppendPrivatePath (string path);
[System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Security.SecurityCritical]
public void AppendPrivatePath (string path);
[System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void AppendPrivatePath (string path);
[System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead.")]
public void AppendPrivatePath (string path);
[<System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.AppendPrivatePath : string -> unit
[<System.Obsolete("AppDomain.AppendPrivatePath has been deprecated and is not supported.")>]
member this.AppendPrivatePath : string -> unit
[<System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.AppendPrivatePath : string -> unit
abstract member AppendPrivatePath : string -> unit
override this.AppendPrivatePath : string -> unit
[<System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member AppendPrivatePath : string -> unit
override this.AppendPrivatePath : string -> unit
[<System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
[<System.Security.SecurityCritical>]
abstract member AppendPrivatePath : string -> unit
override this.AppendPrivatePath : string -> unit
[<System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead.")>]
member this.AppendPrivatePath : string -> unit
[<System.Obsolete("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead.")>]
abstract member AppendPrivatePath : string -> unit
override this.AppendPrivatePath : string -> unit
Public Sub AppendPrivatePath (path As String)

參數

path
String

要附加到私用路徑的目錄名稱。

實作

屬性

例外狀況

嘗試對卸載的應用程式定義域執行作業。

備註

不建議使用這個屬性,因為它可能會在載入元件之後變更元件的探查路徑。 請改用 AppDomainSetup.PrivateBinPath 屬性。

私用路徑或相對搜尋路徑是相對於基底目錄的路徑,其中元件解析程式會探查私人元件。

適用於