RegistrationServices 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一組服務用來從 COM 註冊和取消註冊 Managed 組件。
public ref class RegistrationServices : System::Runtime::InteropServices::IRegistrationServices
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")]
public class RegistrationServices : System.Runtime.InteropServices.IRegistrationServices
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")]
[System.Runtime.InteropServices.ComVisible(true)]
public class RegistrationServices : System.Runtime.InteropServices.IRegistrationServices
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("475e398f-8afa-43a7-a3be-f4ef8d6787c9")]
public class RegistrationServices : System.Runtime.InteropServices.IRegistrationServices
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")>]
type RegistrationServices = class
interface IRegistrationServices
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type RegistrationServices = class
interface IRegistrationServices
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("475e398f-8afa-43a7-a3be-f4ef8d6787c9")>]
type RegistrationServices = class
interface IRegistrationServices
Public Class RegistrationServices
Implements IRegistrationServices
- 繼承
-
RegistrationServices
- 屬性
- 實作
備註
當 COM 用戶端正在使用元件中的物件時,就需要註冊。 Regasm.exe (元件註冊工具) 和 Microsoft Visual Studio 2005 會使用類別所公開的方法 RegistrationServices ,為 managed 元件新增或移除啟用 COM 的登錄專案。
您可以使用下列方法來協助您準備註冊檔案:
雖然這些方法有助於收集要用於註冊檔案的資訊,但實際上並不會產生註冊檔。 相反地,您可以使用 Regasm.exe (元件註冊工具) 工具搭配執行這項工作的 /regfile
選項。 RegistrationServices 方法無法匯出和註冊類型程式庫。 若要匯出和註冊類型程式庫,您可以使用 Regasm.exe (元件註冊工具) 工具和 Tlbexp.exe (型別程式庫匯出工具) 工具。
建構函式
RegistrationServices() |
初始化 RegistrationServices 類別的新執行個體。 |