Share via


AssemblyInstaller.Path 属性

定义

获取或设置要安装的程序集的路径。

public:
 property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
public string Path { get; set; }
member this.Path : string with get, set
Public Property Path As String

属性值

要安装的程序集的路径。

示例

在以下示例中, AssemblyInstaller 通过调用 AssemblyInstaller 构造函数创建 。 设置 Path 此对象的属性。

// Create an object of the 'AssemblyInstaller' class.
AssemblyInstaller^ myAssemblyInstaller = gcnew AssemblyInstaller;

// Set the path property of the AssemblyInstaller object.
myAssemblyInstaller->Path = "MyAssembly_Rollback.exe";
// Create an object of the 'AssemblyInstaller' class.
AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller();

// Set the path property of the AssemblyInstaller object.
myAssemblyInstaller.Path = "MyAssembly_Rollback.exe";
' 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"

适用于