言語

IComSoapPublisher.UnRegisterAssembly(String) メソッド

定義

COM 相互運用機能アセンブリの登録を解除します。

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

パラメーター

AssemblyPath
String

アセンブリのファイル システム パス。

例外

呼び出しチェーン内の呼び出し元には、アンマネージ コードにアクセスするアクセス許可がありません。

-又は-

"file://" で始まらないコードベースが、必要な WebPermissionなしで指定されました。

AssemblyPathnullです。

AssemblyPath が見つからないか、ファイル名拡張子が指定されていません。

AssemblyPath は有効なアセンブリではありません。

アセンブリまたはモジュールが 2 つの異なる証拠で 2 回読み込まれたか、アセンブリ名がシステム定義の最大長を超えています。

ComUnregisterFunctionAttributeでマークされたメソッドはstaticされません。

-又は-

階層の特定のレベルで ComUnregisterFunctionAttribute でマークされた複数のメソッドがあります。

-又は-

ComUnregisterFunctionAttributeでマークされたメソッドのシグネチャが無効です。

注釈

UnRegisterAssemblyの実装では、Regasm.exe を使用して、アセンブリ内の作成可能なクラスの登録を解除します。 詳細については、「 Regasm.exe (アセンブリ登録ツール)」を参照してください。

適用対象