CertificateRequestProperties.FriendlyName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定已註冊憑證的顯示名稱。
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
屬性值
顯示名稱。
範例
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;
}
備註
根據預設,這個值是空字串。 FriendlyName