IAlternativeName::get_StrValue method (certenroll.h)

The StrValue property retrieves a string that contains an email address, a Domain Name System (DNS) name, a URL, a registered object identifier (OID), or a user principal name (UPN).

This property is read-only.

Syntax

HRESULT get_StrValue(
  BSTR *pValue
);

Parameters

pValue

Return value

None

Remarks

You can call this property to retrieve a string if you initialized the IAlternativeName object by calling the InitializeFromString method and specifying one of the following AlternativeNameType values.

Value Description
XCN_CERT_ALT_NAME_RFC822_NAME The name is an email address.
XCN_CERT_ALT_NAME_DNS_NAME The name is a DNS name.
XCN_CERT_ALT_NAME_URL The name is a URL.
XCN_CERT_ALT_NAME_REGISTERED_ID The name is a registered OID.
XCN_CERT_ALT_NAME_USER_PRINCIPLE_NAME The name is a UPN.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

IAlternativeName