![]() ![]() ![]() |
CCFXStringSet* CCFXRequest::GetAttributeList(void)
Retrieves a list of all attribute names passed to the tag. To retrieve the value of an individual attribute, you should use the GetAttribute member function.
Returns an object of class CCFXStringSet that contains a list of all attributes passed to the tag.
You are not responsible for freeing the memory allocated for the returned string set (it will be automatically freed by ColdFusion after the request is completed).
The following example retrieves the list of attributes and then iterates over the list, writing each attribute and its value back to the user.
LPCSTR lpszName, lpszValue ; CCFXStringSet* pAttribs = pRequest->GetAttributeList() ; int nNumAttribs = pAttribs->GetCount() ; for( int i=1; i<=nNumAttribs; i++ ) { lpszName = pAttribs->GetString( i ) ; lpszValue = pRequest->GetAttribute( lpszName ) ; pRequest->Write( lpszName ) ; pRequest->Write( " = " ) ; pRequest->Write( lpszValue ) ; pRequest->Write( "<BR>" ) ; }
![]() ![]() ![]() |
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.