語言

Publish.GacRemove(String) 方法

定義

從全域組裝快取中移除一個組裝體。

public:
 virtual void GacRemove(System::String ^ AssemblyPath);
public void GacRemove(string AssemblyPath);
abstract member GacRemove : string -> unit
override this.GacRemove : string -> unit
Public Sub GacRemove (AssemblyPath As String)

參數

AssemblyPath
String

組合語言的檔案系統路徑。

實作

例外狀況

呼叫鏈中的呼叫者沒有權限存取非管理程式碼。

-或-

呼叫者沒有路徑發現權限。

AssemblyPath 是 null。

AssemblyPath 空無一人。

找不到 AssemblyPath。

元件或模組已載入兩次,並具有兩個不同的辨識項。

AssemblyPath 不是一個有效的組裝。

適用於