ZennoLab Assemblies Documentation
ToString Method
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace > IProfile Interface : ToString Method

Glossary Item Box

Returns a string that represents the current profile.

Syntax

C# 
string ToString()

Return Value

Type: System.String

A string that represents the current profile.

Remarks

You should remember that all ZennoPoster's structures, actions and methods uses the utf-8 encoding.

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);
PHPCopy 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

© 2013 All Rights Reserved.