getAttribute method
[This documentation is preliminary and is subject to change.]
Obsolete. Returns the value of the named attribute from the userProfile object.
This method is not supported for Metro style apps using JavaScript.
![]() |
Syntax
BSTR retVal = object.getAttribute(name);
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
Parameters
name [in]
Type: BSTRBSTR that specifies one of the standard vCard names listed in Remarks. If one of these names is not used, the request is ignored.
Remarks
As of Windows Internet Explorer 7, this method is obsolete and should not be used.
The following schema is used for the field names of the user data store. These names are specified when you use the getAttribute method on the userProfile object. Note that the format has changed from vCard_xxx to vCard.xxx, and that the older format no longer is supported.
| vCard Names | ||
|---|---|---|
| vCard.Business.City | vCard.Business.Country | vCard.Business.Fax |
| vCard.Business.Phone | vCard.Business.State | vCard.Business.StreetAddress |
| vCard.Business.URL | vCard.Business.Zipcode | vCard.Cellular |
| vCard.Company | vCard.Department | vCard.DisplayName |
| vCard.Email | vCard.FirstName | vCard.Gender* |
| vCard.Home.City | vCard.Home.Country | vCard.Home.Fax |
| vCard.Home.Phone | vCard.Home.State | vCard.Home.StreetAddress |
| vCard.Home.Zipcode | vCard.Homepage | vCard.JobTitle |
| vCard.LastName | vCard.MiddleName | vCard.Notes |
| vCard.Office | vCard.Pager | |
Note An asterisk (*) denotes extensions to the vCard schema. Extensions are referenced as X- elements, as defined in the vCard schema.
Build date: 1/26/2012
.png)