![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
GetProductProperty Method (property)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Session ► GetProductProperty(String)
Retrieves product properties (not session properties) from the product database.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public string GetProductProperty( string property )
Public Function GetProductProperty ( property As String ) As String
public: String^ GetProductProperty( String^ property )
![](collapse_all.gif)
- property (String)
![](collapse_all.gif)
String
Value of the property, or an empty string if the property is not set.
Value of the property, or an empty string if the property is not set.
![](collapse_all.gif)
Note this is not the correct method for getting ordinary session properties. For that, see the indexer on the Session class.
Win32 MSI API: MsiGetProductProperty
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)