Поделиться через


CertificateRequestProperties.Subject Свойство

Определение

Возвращает или задает имя субъекта.

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

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

Значение свойства

String

Platform::String

winrt::hstring

Различающееся имя (DN) X.500.

Примеры

public String GetSetSubjectName(String strNameIn)
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();

    // The default value is an empty string.
    String strDefaultName = reqProperties.Subject;

    // If the input option does not equal the default option, reset the property value.
    if (strNameIn != strDefaultName)
    {
        reqProperties.Subject = strNameIn;
    }

    // Return the subject name.
    return reqProperties.Subject;
}

Комментарии

Это значение представляет собой различающееся имя X.500 (DN). Это может быть полная строка DN, содержащая одно или несколько относительных различающихся имен (RDN) в формате "CN=;OU=,..", или имя субъекта может быть простой строкой, содержащей компонент общего имени (CN) полного DN.

Применяется к