AssemblyInstaller.Path 屬性

定義

取得或設定要安裝的組件路徑。Gets or sets the path of the assembly to install.

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

屬性值

要安裝的組件路徑。The path of the assembly to install.

範例

在下列範例中,是AssemblyInstaller藉由叫用此AssemblyInstaller函式來建立。In the following example, an AssemblyInstaller is created by invoking the AssemblyInstaller constructor. Path設定此物件的屬性。The Path properties of this object are set.

// 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"

適用於