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.
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
public: [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.")] String^ FormatRecord( Record^ record, String^ format )
Return Value
String
A formatted string containing the record data
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.dll) Version: 3.0.0.0 (3.9.1006.0)