Deployment Tools Foundation
CurrentState Property
Gets the current install state of the designated Component.
Declaration Syntax| C# | Visual Basic | Visual C++ |
public InstallState CurrentState { get; }
Public ReadOnly Property CurrentState As InstallState Get
public: property InstallState CurrentState { InstallState get (); }
Property Value
RemarksWin32 MSI API: MsiGetComponentState
Exceptions| Exception | Condition |
|---|---|
| InvalidHandleException | the Session handle is invalid |
| ArgumentException | an unknown Component was requested |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)