Share via


CertificateRequestProperties.FriendlyName Property

Definition

Gets or sets the display name of the enrolled certificate.

public:
 property Platform::String ^ FriendlyName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring FriendlyName();

void FriendlyName(winrt::hstring value);
public string FriendlyName { get; set; }
var string = certificateRequestProperties.friendlyName;
certificateRequestProperties.friendlyName = string;
Public Property FriendlyName As String

Property Value

String

Platform::String

winrt::hstring

The display name.

Examples

public String GetSetDisplayName(String strDisplayNameIn)
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();
    
    // The default value is an empty string.
    String defaultName = reqProperties.FriendlyName;

    // If the input option does not equal the default option, reset the property value.
    if (strDisplayNameIn != defaultName)
    {
        reqProperties.FriendlyName = strDisplayNameIn;
    }

    // Return the display name.
    return reqProperties.FriendlyName;

}

Remarks

By default, this value is an empty string. FriendlyName

Applies to