次の方法で共有


AssemblyInstaller.Path プロパティ

インストールするアセンブリのパスを取得または設定します。

Public Property Path As String
[C#]
public string Path {get; set;}
[C++]
public: __property String* get_Path();public: __property void set_Path(String*);
[JScript]
public function get Path() : String;public function set Path(String);

プロパティ値

インストールするアセンブリのパス。

使用例

[Visual Basic, C#, C++] 次の例では、 AssemblyInstaller コンストラクタの呼び出しによって AssemblyInstaller が作成されます。このオブジェクトの Path プロパティが設定されます。

 
' Create an object of the 'AssemblyInstaller' class.
Dim myAssemblyInstaller As New AssemblyInstaller()

' Set the path property of the AssemblyInstaller object.
myAssemblyInstaller.Path = "MyAssembly_Rollback.exe"

[C#] 
// Create an object of the 'AssemblyInstaller' class.
AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller();

// Set the path property of the AssemblyInstaller object.
myAssemblyInstaller.Path = "MyAssembly_Rollback.exe";

[C++] 
// Create an object of the 'AssemblyInstaller' class.
AssemblyInstaller* myAssemblyInstaller = new AssemblyInstaller();

// Set the path property of the AssemblyInstaller object.
myAssemblyInstaller->Path = S"MyAssembly_Rollback.exe";

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

AssemblyInstaller クラス | AssemblyInstaller メンバ | System.Configuration.Install 名前空間