[This is preliminary documentation and subject to change.]
The GetName method retrieves the name of the attribute.
[VB] String GetName();
[JAVA] Java.lang.String GetName();
[C++] HRESULT GetName(
BSTR *pstrOutName // out
);
[VB][JAVA] The return value is a String representing the name of the attribute.
[C++] The return value is an HRESULT. A value of S_OK indicates success.
This function is used to retrieve the name of the attribute currently referenced by the IEnumCERTVIEWATTRIBUTE object.
If the IEnumCERTVIEWATTRIBUTE object is not referencing a valid attribute, GetName will fail. Use the IEnumCERTVIEWATTRIBUTE Next method to reference a valid attribute.
BSTR bstrAttribName = NULL;
// pEnumAttr is previously instantiated IEnumCERTVIEWATTRIBUTE object
hr = pEnumAttr->GetName(&bstrAttribName);
if ( S_OK != hr )
printf("Failed call to GetName - %x\n", hr);
else
printf("Attribute name is %S\n", bstrAttribName );
// free memory when done
if ( NULL != bstrAttribName )
SysFreeString( bstrAttribName );
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certview.h.
Import Library: Use certidl.lib.
IEnumCERTVIEWATTRIBUTE::GetValue