Returns a string that represents the current profile.
Syntax
Return Value
Type: System.String
A string that represents the current profile.
Remarks
Example
The following example uses
ToString method of profile. This example gets the representation of the profile as string and saves it to the file with path:
C:\profile.txt.
| C# | Copy Code |
|---|
// get the in the string format
string profileAsString = project.Profile.ToString();
// save it to file D:\profile.txt
System.IO.File.WriteAllText("C:\\profile.txt", profileAsString, Encoding.UTF8); |
| PHP | Copy Code |
|---|
// get the in the string format
$profileAsString = $project->Profile->ToString();
// save it to file D:\profile.txt
System\IO\File::WriteAllText("C:\\profile.txt", $profileAsString, System\Text\Encoding::UTF8); |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven
See Also