GetUserEmail

Description

Returns the electronic mail address of the user who is logged in for this session.

If you have access to the schema repository, you can change the text of the user's e-mail address using the schema repository object User. Simply assign a new value to the e-mail property of User.

Syntaxe

VBScript

session.GetUserEmail 

Perl

$session->GetUserEmail(); 
Identificateur
Description
session
Objet Session représentant la session en cours d'accès à la base de données.
Valeur renvoyée
A String containing the e-mail address of the user who is logged in for this session.

Exemples

VBScript

set sessionObj = GetSession 

' Get the user's personal information 
userName = sessionObj.GetUserFullName 
userLogin = sessionObj.GetUserLoginName 
userEmail = sessionObj.GetUserEmail 

Perl

#Create a Rational ClearQuest session

$sessionObj = $entity->GetSession();



#Get the user's personal information

$userName = $sessionObj->GetUserFullName();

$userLogin = $sessionObj->GetUserLoginName();

$userEmail = $sessionObj->GetUserEmail(); 

Commentaires en retour