ToString Method (format)

DTF API

Copy image CopyHover image
Deployment Tools Foundation ToString Method (format)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerRecordToString(String)
Gets a formatted string representation of the Record.
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 no parameters.")]
public string ToString(
	string format
)
<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 no parameters.")>
Public Function ToString ( 
	format As String
) 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 no parameters.")]
String^ ToString(
	String^ format
)
[<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 no parameters.")>]
member ToString : 
        format : string -> string 
Parameters
format (String)
String to be used to format the data in the Record, instead of the Record's format string.
Return Value
String
A formatted string representation of the Record.
Remarks

Win32 MSI API: MsiFormatRecord

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)