getAttribute Method

DHTML, HTML, & CSS

getAttribute Method


Returns the value of the named attribute.

Syntax

sValue = userProfile.getAttribute(sAttributeName)

Parameters

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

Return Value

String. Returns a null value if read access for this attribute is not available.

Remarks

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.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.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.

userProfile


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.