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);
 .NET Framework のセキュリティ
.NET Framework のセキュリティ プラットフォーム
プラットフォーム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 メソッド
                    を検索
                     全ての辞書からRegistrationHelper.InstallAssemblyFromConfig メソッド
                    を検索
                - RegistrationHelper.InstallAssemblyFromConfig メソッドのページへのリンク

 
                             
                    


