Skip to content

Latest commit

 

History

History
121 lines (89 loc) · 4.31 KB

nf-certview-ienumcertviewcolumn-getname.md

File metadata and controls

121 lines (89 loc) · 4.31 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:certview.IEnumCERTVIEWCOLUMN.GetName
IEnumCERTVIEWCOLUMN::GetName (certview.h)
Retrieves the nonlocalized name of the current column in the column-enumeration sequence.
GetName
GetName method [Security]
GetName method [Security]
IEnumCERTVIEWCOLUMN interface
IEnumCERTVIEWCOLUMN interface [Security]
GetName method
IEnumCERTVIEWCOLUMN.GetName
IEnumCERTVIEWCOLUMN::GetName
_certsrv_ienumcertviewcolumn_getname
certview/IEnumCERTVIEWCOLUMN::GetName
security.ienumcertviewcolumn_getname
security\ienumcertviewcolumn_getname.htm
security
be76cec1-9ac0-4cc0-bddb-992b2d3590d7
12/05/2018
GetName, GetName method [Security], GetName method [Security],IEnumCERTVIEWCOLUMN interface, IEnumCERTVIEWCOLUMN interface [Security],GetName method, IEnumCERTVIEWCOLUMN.GetName, IEnumCERTVIEWCOLUMN::GetName, _certsrv_ienumcertviewcolumn_getname, certview/IEnumCERTVIEWCOLUMN::GetName, security.ienumcertviewcolumn_getname
certview.h
Certsrv.h
Windows
None supported
Windows Server 2003 [desktop apps only]
Certidl.lib
Certadm.dll
Windows
19H1
IEnumCERTVIEWCOLUMN::GetName
certview/IEnumCERTVIEWCOLUMN::GetName
c++
APIRef
kbSyntax
COM
Certadm.dll
IEnumCERTVIEWCOLUMN.GetName
IEnumCERTVIEWCOLUMN.GetName

IEnumCERTVIEWCOLUMN::GetName

-description

The GetName method retrieves the nonlocalized name of the current column in the column-enumeration sequence.

-parameters

-param pstrOut [out]

A pointer to a variable of BSTR type that contains the name of the column.

-returns

C++

If the method succeeds, the method returns S_OK and the pstrOut parameter contains the name of the column.

To use this method, create a variable of BSTR type, set the variable equal to NULL, and pass the address of this variable as pstrOut. When you have finished using the BSTR, free it by calling the SysFreeString function.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

The return value is a String that contains the name of the column.

-remarks

This method is used to retrieve the nonlocalized name of the column currently referenced by the column-enumeration sequence.

If the column-enumeration sequence is not referencing a valid column, GetName will fail. Use one of the following methods to navigate through the enumeration:

Examples

BSTR       bstrColName = NULL;
HRESULT    hr;

// pEnumCol is previously instantiated IEnumCERTVIEWCOLUMN object
hr = pEnumCol->GetName(&bstrColName);
if (S_OK == hr)
    printf("Column name is %ws\n", bstrColName);

// done processing, clear resources
if (NULL != bstrColName)
    SysFreeString(bstrColName);

-see-also

IEnumCERTVIEWCOLUMN

IEnumCERTVIEWCOLUMN::Next

IEnumCERTVIEWCOLUMN::Reset

IEnumCERTVIEWCOLUMN::Skip