AssemblyInstaller.Path 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定要安裝的組件路徑。
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"