GetUserPhone

Description

Returns the telephone number of the user who is logged in for this session.

If you have access to the schema repository, you can change the text for the user's phone number using the schema repository object User. Simply assign a new value to the Phone property of User.

Syntaxe

VBScript

session.GetUserPhone 

Perl

$session->GetUserPhone(); 
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 telephone number (if known) 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 
userPhone = sessionObj.GetUserPhone 
userMisc = sessionObj.GetUserMiscInfo 

Perl

# Get a Rational ClearQuest session

$sessionObj = $entity->GetSession();



# Get the user's personal information

$username = $sessionObj->GetUserFullName();

$userLogin = $sessionObj->GetUserLoginName();

$userEmail = $sessionObj->GetUserEmail();

$userPhone = $sessionObj->GetUserPhone();

$userMisc = $sessionObj->GetUserMiscInfo(); 

Commentaires en retour