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++ | F# |
[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
public: [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.")] 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.")>] member ToString : format : string * provider : IFormatProvider -> string
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
String
A formatted string representation of the Record.
A formatted string representation of the Record.
Remarks
Win32 MSI API: MsiFormatRecord
See Also
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)