Deployment Tools Foundation
ToString Method (format, provider)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Record ► ToString(String, IFormatProvider)
Gets a formatted string representation of the Record, optionally using a Session to format properties.
Declaration Syntax
C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("This method is obsolete because it has undesirable side-effects. As an alternative, set the FormatString property separately before calling the ToString() override that takes just a format provider.")] public string ToString( string format, IFormatProvider provider )
<ObsoleteAttribute("This method is obsolete because it has undesirable side-effects. As an alternative, set the FormatString property separately before calling the ToString() override that takes just a format provider.")> _ Public Function ToString ( _ format As String, _ provider As IFormatProvider _ ) As String
[ObsoleteAttribute(L"This method is obsolete because it has undesirable side-effects. As an alternative, set the FormatString property separately before calling the ToString() override that takes just a format provider.")] public: String^ ToString( String^ format, IFormatProvider^ provider )
Parameters
- format (String)
- String to be used to format the data in the Record, instead of the Record's format string.
- provider (IFormatProvider)
- an optional Session instance that will be used to lookup any properties in the Record's format string
Return Value
A formatted string representation of the Record.
Remarks
Win32 MSI API: MsiFormatRecord
See Also