Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

getAttribute method

Obsolete. Returns the value of the named attribute from the userProfile object.

This method is not supported for Windows Store apps using JavaScript.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

Syntax


 retVal = object.getAttribute(name);

Parameters

name [in]

Type: BSTR

BSTR that specifies one of the standard vCard names listed in Remarks. If one of these names is not used, the request is ignored.

Standards information

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 IHTMLOpsProfile::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.CityvCard.Business.CountryvCard.Business.Fax
vCard.Business.PhonevCard.Business.StatevCard.Business.StreetAddress
vCard.Business.URLvCard.Business.ZipcodevCard.Cellular
vCard.CompanyvCard.DepartmentvCard.DisplayName
vCard.EmailvCard.FirstNamevCard.Gender*
vCard.Home.CityvCard.Home.CountryvCard.Home.Fax
vCard.Home.PhonevCard.Home.StatevCard.Home.StreetAddress
vCard.Home.ZipcodevCard.HomepagevCard.JobTitle
vCard.LastNamevCard.MiddleNamevCard.Notes
vCard.OfficevCard.Pager

 

Note  An asterisk (*) denotes extensions to the vCard schema. Extensions are referenced as X- elements, as defined in the vCard schema.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.