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.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
Public Class RegistrationServices
Implements IRegistrationServices
継承
RegistrationServices
属性
実装

注釈

アセンブリ内のオブジェクトが COM クライアントによって使用されている場合は、登録が必要です。 Regasm.exe (アセンブリ登録ツール) および Microsoft Visual Studio 2005 では、RegistrationServices クラスによって公開されるメソッドを使用して、マネージド アセンブリの COM 対応レジストリ エントリを追加または削除します。

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

これらのメソッドは、登録ファイルで使用される情報を収集するのに役立ちますが、実際には登録ファイルを生成しません。 代わりに、 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) メソッドに登録されている型への参照を削除します。

適用対象

こちらもご覧ください