RegistrationHelper.InstallAssemblyFromConfig メソッド
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)

Dim instance As RegistrationHelper Dim regConfig As RegistrationConfig instance.InstallAssemblyFromConfig(regConfig)


InstalAssemblyFromConfig メソッドを使用して、名前付きアセンブリを COM+ アプリケーションにインストールする方法を次のコード例に示します。
' Create a RegistrationConfig object and set its attributes ' Create a RegistrationHelper object, and call the InstallAssemblyFromConfig ' method by passing the RegistrationConfiguration object to it as a ' reference object Dim registrationConfiguration As New RegistrationConfig() registrationConfiguration.AssemblyFile = "C:..\..\QueuedComponent.dll" registrationConfiguration.Application = "MyApp" registrationConfiguration.InstallationFlags = InstallationFlags.CreateTargetApplication Dim helperFromConfig As New RegistrationHelper() helperFromConfig.InstallAssemblyFromConfig(registrationConfiguration)
// Create a RegistrationConfig object and set its attributes // Create a RegistrationHelper object, and call the InstallAssemblyFromConfig // method by passing the RegistrationConfiguration object to it as a // reference object RegistrationConfig registrationConfiguration = new RegistrationConfig(); registrationConfiguration.AssemblyFile=@"C:..\..\QueuedComponent.dll"; registrationConfiguration.Application = "MyApp"; registrationConfiguration.InstallationFlags = InstallationFlags.CreateTargetApplication; RegistrationHelper helperFromConfig = new RegistrationHelper(); helperFromConfig.InstallAssemblyFromConfig(ref registrationConfiguration);
// Create a RegistrationConfig object and set its attributes // Create a RegistrationHelper object, and call the InstallAssemblyFromConfig // method by passing the RegistrationConfiguration object to it as a // reference object RegistrationConfig^ registrationConfiguration = gcnew RegistrationConfig; registrationConfiguration->AssemblyFile = "C:..\\..\\QueuedComponent.dll"; registrationConfiguration->Application = "MyApp"; registrationConfiguration->InstallationFlags = InstallationFlags::CreateTargetApplication; RegistrationHelper^ helperFromConfig = gcnew RegistrationHelper; helperFromConfig->InstallAssemblyFromConfig( registrationConfiguration );
// Create a RegistrationConfig object and set its attributes // Create a RegistrationHelper object, and call the // InstallAssemblyFromConfig method by passing the // RegistrationConfiguration object to it as a reference object RegistrationConfig registrationConfiguration = new RegistrationConfig(); registrationConfiguration.set_AssemblyFile( "C:..\\..\\QueuedComponent.dll"); registrationConfiguration.set_Application("MyApp"); registrationConfiguration.set_InstallationFlags(InstallationFlags. CreateTargetApplication); RegistrationHelper helperFromConfig = new RegistrationHelper(); helperFromConfig.InstallAssemblyFromConfig(registrationConfiguration);


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からRegistrationHelper.InstallAssemblyFromConfig メソッドを検索する場合は、下記のリンクをクリックしてください。

- RegistrationHelper.InstallAssemblyFromConfig メソッドのページへのリンク