ComponentInstaller.CopyFromComponent メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ComponentInstaller.CopyFromComponent メソッドの意味・解説 

ComponentInstaller.CopyFromComponent メソッド

派生クラスによってオーバーライドされた場合指定したコンポーネントから、インストール時必要なすべてのプロパティコピーします

名前空間: System.Configuration.Install
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)
構文構文

Public MustOverride Sub
 CopyFromComponent ( _
    component As IComponent _
)
Dim instance As ComponentInstaller
Dim component As IComponent

instance.CopyFromComponent(component)
public abstract void CopyFromComponent (
    IComponent component
)
public:
virtual void CopyFromComponent (
    IComponent^ component
) abstract
public abstract void CopyFromComponent (
    IComponent component
)
public abstract function CopyFromComponent
 (
    component : IComponent
)

パラメータ

component

コピー元のコンポーネント

解説解説
使用例使用例

イベント ログ作成しイベント ログ コンポーネントプロパティを EventLogInstaller にコピーするクラス MyInstallClass定義する例を次に示します。またこの例では、ServiceInstaller が EventLogInstaller と同じ種類インストール実行できるかどうかチェックします

Dim myEventLogInstaller As New
 EventLogInstaller()
' Create a source for the specified event log, on local computer.
EventLog.CreateEventSource("MyEventSource", "MyEventLog",
 ".")
' Create an event log instance and associate it with the log .
Dim myEventLog As New EventLog("MyEventLog",
 ".", "MyEventSource")
' Copy the properties that are required at install time from
' the event log component to the installer.
myEventLogInstaller.CopyFromComponent(myEventLog)
EventLogInstaller myEventLogInstaller = new EventLogInstaller();
// Create a source for the specified event log, on local computer.
EventLog.CreateEventSource("MyEventSource","MyEventLog", ".");
// Create an event log instance and associate it with the log .
EventLog myEventLog = new EventLog("MyEventLog", ".",
 "MyEventSource");
// Copy the properties that are required at install time from
// the event log component to the installer.
myEventLogInstaller.CopyFromComponent(myEventLog);
EventLogInstaller^ myEventLogInstaller = gcnew EventLogInstaller;
// Create a source for the specified event log, on local computer.
EventLog::CreateEventSource( "MyEventSource", "MyEventLog", "."
 );
// Create an event log instance and associate it with the log .
EventLog^ myEventLog = gcnew EventLog( "MyEventLog",".","MyEventSource"
 );
// Copy the properties that are required at install time from
// the event log component to the installer.
myEventLogInstaller->CopyFromComponent( myEventLog );
EventLogInstaller myEventLogInstaller = new EventLogInstaller();
// Create a source for the specified event log, on local computer.
EventLog.CreateEventSource("MyEventSource", "MyEventLog", ".");
// Create an event log instance and associate it with the log .
EventLog myEventLog = new EventLog("MyEventLog", ".",
 "MyEventSource");
// Copy the properties that are required at install time from
// the event log component to the installer.
myEventLogInstaller.CopyFromComponent(myEventLog);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ComponentInstaller クラス
ComponentInstaller メンバ
System.Configuration.Install 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ComponentInstaller.CopyFromComponent メソッド」の関連用語

ComponentInstaller.CopyFromComponent メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ComponentInstaller.CopyFromComponent メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS