Deployment Tools Foundation
FormatRecord Method (record, format)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Session ► FormatRecord(Record, String)
Returns a formatted string from record data using a specified format.

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 )

A formatted string containing the record data

Win32 MSI API: MsiFormatRecord

Exception | Condition |
---|---|
InvalidHandleException | the Record handle is invalid |