FormatRecord Method (record, format)

Microsoft Deployment Tools

Deployment Tools Foundation FormatRecord Method (record, format)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSessionFormatRecord(Record, String)
Returns a formatted string from record data using a specified format.
Declaration Syntax
C# Visual Basic Visual C++
[ObsoleteAttribute("This method is obsolete because it has undesirable side-effects. As an alternative, set the Record's FormatString property separately before calling the FormatRecord() override that takes only the Record parameter.")]
public string FormatRecord(
	Record record,
	string format
)
<ObsoleteAttribute("This method is obsolete because it has undesirable side-effects. As an alternative, set the Record's FormatString property separately before calling the FormatRecord() override that takes only the Record parameter.")> _
Public Function FormatRecord ( _
	record As Record, _
	format As String _
) As String
[ObsoleteAttribute(L"This method is obsolete because it has undesirable side-effects. As an alternative, set the Record's FormatString property separately before calling the FormatRecord() override that takes only the Record parameter.")]
public:
String^ FormatRecord(
	Record^ record, 
	String^ format
)
Parameters
record (Record)
Record object containing a template and data to be formatted
format (String)
Format string to be used instead of field 0 of the Record
Return Value
A formatted string containing the record data
Remarks

Win32 MSI API: MsiFormatRecord

Exceptions
Exception Condition
InvalidHandleException the Record handle is invalid

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)