IComSoapPublisher.UnRegisterAssembly(String) 方法

定義

移除 COM Interop 組件的註冊。

public:
 void UnRegisterAssembly(System::String ^ AssemblyPath);
public void UnRegisterAssembly (string AssemblyPath);
abstract member UnRegisterAssembly : string -> unit
Public Sub UnRegisterAssembly (AssemblyPath As String)

參數

AssemblyPath
String

組件的檔案系統路徑。

例外狀況

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

-或- 指定了並非以 "file://" 開頭的程式碼基底,且沒有必要的 WebPermission

AssemblyPathnull

找不到 AssemblyPath,或未指定副檔名。

AssemblyPath 不是有效的組件。

以兩個不同辨識項載入組件或模組兩次,或是組件名稱超過系統定義的長度上限。

ComUnregisterFunctionAttribute 標記的方法不是 static

-或- 在階層架構的指定層級中,有一個以上的方法是以 ComUnregisterFunctionAttribute 標記。

-或- 以 ComUnregisterFunctionAttribute 標記之方法的簽章無效。

備註

的執行會 UnRegisterAssembly 使用 Regasm.exe 來取消註冊元件中的可程式類別。 如需詳細資訊,請參閱 Regasm.exe (元件註冊工具)

適用於