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

組件的檔案系統路徑。

實作

例外狀況

呼叫鏈結中的呼叫端沒有存取 Unmanaged 程式碼的使用權限。

-或-

呼叫端沒有路徑探索權限。

AssemblyPathnull

AssemblyPath 是空的。

找不到 AssemblyPath

使用兩個不同的辨識項載入組件或模組兩次。

AssemblyPath 不是有效的組件。

適用於