RegistrationServices クラス

定義

COM から使用できるようにマネージド アセンブリを登録および登録解除するための一連のサービスを提供します。

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 では、 クラスによって公開されているメソッドを使用して、マネージド アセンブリの COM を有効にするレジストリ エントリを追加または削除します。 RegistrationServices

登録ファイルの準備には、次の方法を使用できます。

これらのメソッドは、登録ファイルで使用される情報を収集するのに役立ちますが、実際には登録ファイルを生成する必要があります。 代わりに、このタスクを実行Regasm.exe (アセンブリ 登録ツール) ツール /regfile を使用できます。 RegistrationServices メソッドはタイプ ライブラリをエクスポートおよび登録できません。 タイプ ライブラリをエクスポートして登録するには、Regasm.exe (アセンブリ登録ツール) ツールとTlbexp.exe (タイプ ライブラリ エクスポートツール) ツール を使用 できます。

コンストラクター

RegistrationServices()

RegistrationServices クラスの新しいインスタンスを初期化します。

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetManagedCategoryGuid()

マネージド クラスを格納している COM カテゴリの GUID を返します。

GetProgIdForType(Type)

指定した型の COM ProgID を取得します。

GetRegistrableTypesInAssembly(Assembly)

RegisterAssembly(Assembly, AssemblyRegistrationFlags) への呼び出しによって登録されるアセンブリ内のクラスの一覧を取得します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
RegisterAssembly(Assembly, AssemblyRegistrationFlags)

マネージド アセンブリ内のクラスを登録して、COM から作成できるようにします。

RegisterTypeForComClients(Type, Guid)

GUID を使用して、指定した型を COM に登録します。

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType)

指定した実行コンテキストと接続の種類を使用して、指定した型を COM に登録します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
TypeRepresentsComType(Type)

型が ComImportAttribute でマークされている、または ComImportAttribute でマークされた型から派生して、親と同じ GUID を共有しているかどうかを示します。

TypeRequiresRegistration(Type)

指定した型が登録を要求するかどうかを確認します。

UnregisterAssembly(Assembly)

マネージド アセンブリ内のクラスの登録を解除します。

UnregisterTypeForComClients(Int32)

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) メソッドで登録されている型への参照を削除します。

適用対象

こちらもご覧ください