GetProductProperty Method (property)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetProductProperty Method (property)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSessionGetProductProperty(String)
Retrieves product properties (not session properties) from the product database.
Declaration Syntax
C# Visual Basic Visual C++ F#
public string GetProductProperty(
	string property
)
Public Function GetProductProperty ( 
	property As String
) As String
public:
String^ GetProductProperty(
	String^ property
)
member GetProductProperty : 
        property : string -> string 
Parameters
property (String)
Return Value
String
Value of the property, or an empty string if the property is not set.
Remarks

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.11.1.2318)