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

Glossary Item Box

Gets the current profile.

Syntax

C# 
public interface IProfile 

Example

The following example uses property Profile of "project".
C#Copy Code
// get login
string login = project.Profile.Login;
 
// set e-mail
project.Profile.Email = "myemail.@example.com";
 
// set gender if it's not male
if (project.Profile.Sex != ProfileSex.Male) project.Profile.Sex = ProfileSex.Male;
 
// set name
project.Profile.Name = "HisName";
PHPCopy Code
// get login
$login = $project->Profile->Login;
 
// set e-mail
$project->Profile->Email = "myemail.@example.com";
 
// set gender if it's not male
if ($project->Profile->Sex != ProfileSex::Male) $project->Profile->Sex = ProfileSex::Male;
 
// set name
$project->Profile->Name = "HisName";

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.