共用方式為


如何:註冊 COM Interop 的核心 Notification Services 組件

Notification Services API 是以 Managed 程式碼開發。不過,Microsoft.SqlServer.NotificationServices.dll 組件中的許多類別可以透過 COM Interop 從 Unmanaged 程式碼來使用。安裝程式會為 COM Interop 註冊這個組件。如果您必須取消註冊這個組件,請遵照下一節的指示。

其他 Notification Services 組件不支援 COM Interop。

若要註冊 COM Interop 的核心組件

  1. 開啟 [命令提示字元] 視窗。

  2. 將目前的目錄切換到 Microsoft .NET Framework version 2.0 目錄。在下列命令中,將 N.N.N 取代成完整的 .NET Framework 版本號碼。

    CD %WINDIR%\Microsoft.NET\Framework\vN.N.N

  3. 利用下列命令來註冊組件:

    regasm /codebase /tlb "%ProgramFiles%\Microsoft SQL Server\90\NotificationServices\9.0.242\bin\microsoft.sqlserver.notificationservices.dll"

請參閱

概念

安裝 SQL Server Notification Services

其他資源

COM Interop (含 Notification Services)
Notification Services 安裝的如何主題

說明及資訊

取得 SQL Server 2005 協助