GetString Method (fieldName)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetString Method (fieldName)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerRecordGetString(String)
Gets a field value as a string.
Declaration Syntax
C# Visual Basic Visual C++ F#
public string GetString(
	string fieldName
)
Public Function GetString ( 
	fieldName As String
) As String
public:
String^ GetString(
	String^ fieldName
)
member GetString : 
        fieldName : string -> string 
Parameters
fieldName (String)
Specifies the field to retrieve.
Return Value
String
String value of the field, or an empty string if the field is null.
Exceptions
Exception Condition
ArgumentOutOfRangeException The field name does not match any of the named fields in the Record.

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)